]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid1: submit IO from originating thread instead of md thread.
authorNeilBrown <neilb@suse.de>
Thu, 19 Jul 2012 10:49:59 +0000 (20:49 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 19 Jul 2012 10:49:59 +0000 (20:49 +1000)
commita8d1b6513c1f8cd4da305ed52b7140d4114f421b
tree735ad15d14104fa5fcb384014241dfb1a28773dd
parent4fdbfc0c58f9ae959e320b25ae3e1e9850a4b514
md/raid1: submit IO from originating thread instead of md thread.

queuing writes to the md thread means that all requests go through the
one processor which may not be able to keep up with very high request
rates.

So use the plugging infrastructure to submit all requests on unplug.
If a 'schedule' is needed, we fall back on the old approach of handing
the requests to the thread for it to handle.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c
drivers/md/raid1.c