[PATCH] md: pass down BIO_RW_SYNC in raid{1,10}
authorLars Ellenberg <Lars.Ellenberg@linbit.com>
Thu, 11 Jan 2007 07:15:37 +0000 (23:15 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 12 Jan 2007 02:18:21 +0000 (18:18 -0800)
commite3881a6816b45668df60a426e5c3431ece1539a7
tree617032a76e25e7167b95ebe4c4a6c90ee301c4c6
parent664c0d3d575946bce24ecf5b7f93ee9541e4caf3
[PATCH] md: pass down BIO_RW_SYNC in raid{1,10}

md raidX make_request functions strip off the BIO_RW_SYNC flag, thus
introducing additional latency.

Fixing this in raid1 and raid10 seems to be straightforward enough.

For our particular usage case in DRBD, passing this flag improved some
initialization time from ~5 minutes to ~5 seconds.

Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Lars Ellenberg <lars@linbit.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid1.c
drivers/md/raid10.c