]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: submit IO from originating thread instead of md thread.
authorNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:27 +0000 (16:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:27 +0000 (16:41 +1000)
commit2e3b9f182e2f8dc50718f7da2e21281b68cc0b21
tree88474ddacdd082e156d95e3778075c64af571d3f
parentb3a0caf9c65ca00b59bb9176bbdba12d9cc7cea9
md/raid10: 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.

This is nearly identical to a recent patch which provided similar
functionality to RAID1.

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