]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: submit IO from originating thread instead of md thread.
authorNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:32:13 +0000 (13:32 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:32:13 +0000 (13:32 +1100)
commit2580b2f48b2395b739e3146b39b414d01d418475
treeef0ed816c8ff324a8b7f1635f5d2727bbac2d968
parent7b757e9e598b23261d7124b36d3512fa28c22ce5
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