aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2012-07-30 20:04:21 -0400
committerNeilBrown <neilb@suse.de>2012-07-30 20:04:21 -0400
commit3f9e7c140e4c4e75bdeeb8df46dd40e49386c978 (patch)
tree81585524e1ce341eb518716c0702a6dfd64a19ef /drivers/md/raid5.h
parent12cee5a8a29e7263e39953f1d941f723c617ca5f (diff)
raid5: Add R5_ReadNoMerge flag which prevent bio from merging at block layer
Because bios will merge at block-layer,so bios-error may caused by other bio which be merged into to the same request. Using this flag,it will find exactly error-sector and not do redundant operation like re-write and re-read. V0->V1:Using REQ_FLUSH instead REQ_NOMERGE avoid bio merging at block layer. Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index f03fb3395183..61dbb615c30b 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -274,6 +274,7 @@ enum r5dev_flags {
274 R5_Wantwrite, 274 R5_Wantwrite,
275 R5_Overlap, /* There is a pending overlapping request 275 R5_Overlap, /* There is a pending overlapping request
276 * on this block */ 276 * on this block */
277 R5_ReadNoMerge, /* prevent bio from merging in block-layer */
277 R5_ReadError, /* seen a read error here recently */ 278 R5_ReadError, /* seen a read error here recently */
278 R5_ReWrite, /* have tried to over-write the readerror */ 279 R5_ReWrite, /* have tried to over-write the readerror */
279 280