]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit5e5acd0622da5cb2752ef26e76549c601f947290
tree12647d87f70cddf29edeeee2d85358667aa24cd8
parent93b82d580e12c7024cd802079d8aecdd3322764f
[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