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)
commitf54a9d0e59c4bea3db733921ca9147612a6f292c
treee17aa5d2a7220cfe7466cc4f8c74af5ed672a591
parent46a06401f6ba13e59d24746fa9ffa6773b69eee3
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