Skip to content

Commit

Permalink
[PATCH] DM: Fix bug: BIO_RW_BARRIER requests to md/raid1 hang.
Browse files Browse the repository at this point in the history
Both R1BIO_Barrier and R1BIO_Returned are 4 !!!!

This means that barrier requests don't get returned (i.e.  b_endio called)
because it looks like they already have been.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Mar 23, 2006
1 parent e9028b0 commit 9e71f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/raid/raid1.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ struct r1bio_s {
* with failure when last write completes (and all failed).
* Record that bi_end_io was called with this flag...
*/
#define R1BIO_Returned 4
#define R1BIO_Returned 6

#endif

0 comments on commit 9e71f9c

Please sign in to comment.