]> 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>
Thu, 27 Sep 2012 02:37:24 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:24 +0000 (12:37 +1000)
commit99de5fdc0ecd1d49476b196b371f4e2a4dfe1595
treeb0199973a86daf45d0fc31fb258c1ccaf1707131
parent65bb7cd6409380de98d2b09071f351cbd2aaa4c2
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