diff options
author | 2010-09-03 11:56:18 +0200 | |
---|---|---|
committer | 2010-09-10 12:35:38 +0200 | |
commit | 3a2edd0d6ddbd5fa3b389ea6db811285415ce6c8 (patch) | |
tree | 5752d02cc755e242270f700d442f35b5fc9557d9 /include/linux/blk_types.h | |
parent | md: implment REQ_FLUSH/FUA support (diff) | |
download | linux-3a2edd0d6ddbd5fa3b389ea6db811285415ce6c8.tar.gz linux-3a2edd0d6ddbd5fa3b389ea6db811285415ce6c8.tar.bz2 linux-3a2edd0d6ddbd5fa3b389ea6db811285415ce6c8.zip |
block: make __blk_rq_prep_clone() copy most command flags
Currently __blk_rq_prep_clone() copies only REQ_WRITE and REQ_DISCARD.
There's no reason to omit other command flags and REQ_FUA needs to be
copied to implement FUA support in request-based dm.
REQ_COMMON_MASK which specifies flags to be copied from bio to request
already identifies all the command flags. Define REQ_CLONE_MASK to be
the same as REQ_COMMON_MASK for clarity and make __blk_rq_prep_clone()
copy all flags in the mask.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r-- | include/linux/blk_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 179799479e6f..36edadf5b41a 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -168,6 +168,7 @@ enum rq_flag_bits { #define REQ_COMMON_MASK \ (REQ_WRITE | REQ_FAILFAST_MASK | REQ_HARDBARRIER | REQ_SYNC | \ REQ_META | REQ_DISCARD | REQ_NOIDLE | REQ_FLUSH | REQ_FUA) +#define REQ_CLONE_MASK REQ_COMMON_MASK #define REQ_UNPLUG (1 << __REQ_UNPLUG) #define REQ_RAHEAD (1 << __REQ_RAHEAD) |