[PATCH] md: Improve detection of lack of barrier support in raid1
authorNeilBrown <neilb@suse.de>
Mon, 1 May 2006 19:15:47 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:42 +0000 (18:17 -0700)
commit62de608da0b0ab17d81a233b50d1e952b9816f69
tree12647d87f70cddf29edeeee2d85358667aa24cd8
parentbea2771871ed1084c9a85ed0c86340f188505702
[PATCH] md: Improve detection of lack of barrier support in raid1

Move the test for 'do barrier work' down a bit so that if the first write to a
raid1 is a BIO_RW_BARRIER write, the checking done by superblock writes will
cause the right thing to happen.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid1.c