]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] md: fix bitmap/read_sb_page so that it handles errors properly.
authorNeilBrown <neilb@cse.unsw.edu.au>
Fri, 9 Sep 2005 23:23:52 +0000 (16:23 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 23:39:11 +0000 (16:39 -0700)
commitab904d634625ef8dc590240b7ee06c7b724e636b
tree3ecd6a17dd99f2f1879b3e1fed58f52e6d35633c
parent71c0805cb48462c99fbe0e5fcc6c12d7b9929c09
[PATCH] md: fix bitmap/read_sb_page so that it handles errors properly.

read_sb_page() assumed that if sync_page_io fails, the device would be marked
faultly.  However it isn't.  So in the face of error, read_sb_page would loop
forever.

Redo the logic so that this cannot happen.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c