]> git.hungrycats.org Git - linux/commit
[PATCH] Fix possible bio corruption with RAID5
authorNeil Brown <neilb@cse.unsw.edu.au>
Mon, 15 Dec 2003 08:35:56 +0000 (00:35 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 15 Dec 2003 08:35:56 +0000 (00:35 -0800)
commite1f936a94c1b6e519bdffc1ce02bfb8a81035e06
tree33978343b75783dfd375a26b22120a54a746d10d
parent056ffaadc8a7197d681e12b2da9ab61ca68e9a97
[PATCH] Fix possible bio corruption with RAID5

 1/ make sure raid5 doesn't try to handle multiple overlaping
    requests at the same time as this would confuse things badly.
    Currently it justs BUGs if this is attempted.
 2/ Fix a possible data-loss-on-write problem.  If two or
    more bio's that write to the same page are processed at the
    same time, only the first was actually commited to storage.
 3/ Fix a use-after-free bug.  raid5 keeps the bio's it is given
    in linked lists when more than one bio touch a single page.
    In some cases the tail of this list can be freed, and
    the current test for 'are we at the end' isn't reliable.
    This patch strengths the test to make it reliable.
drivers/md/raid5.c