]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid1: submit IO from originating thread instead of md thread.
authorNeilBrown <neilb@suse.de>
Wed, 1 Aug 2012 22:33:20 +0000 (08:33 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 1 Aug 2012 22:33:20 +0000 (08:33 +1000)
commitf28669346ae219f408d28151488965a35c32a61e
treee17aa5d2a7220cfe7466cc4f8c74af5ed672a591
parent76c05a2667a2aae51875ae3f57ba3e84107765cf
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