NeilBrown 729a18663a md/raid5: don't complete make_request on barrier until writes are scheduled
The post-barrier-flush is sent by md as soon as make_request on the
barrier write completes.  For raid5, the data might not be in the
per-device queues yet.  So for barrier requests, wait for any
pre-reading to be done so that the request will be in the per-device
queues.

We use the 'preread_active' count to check that nothing is still in
the preread phase, and delay the decrement of this count until after
write requests have been submitted to the underlying devices.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-12-14 12:51:40 +11:00
..
2009-06-22 10:12:26 +01:00
2009-04-09 00:27:17 +01:00
2009-09-14 08:24:52 +02:00
2009-06-22 10:12:29 +01:00
2009-09-04 20:40:25 +01:00
2007-10-20 02:01:26 +01:00
2009-03-31 14:57:37 +11:00