block: copy NOMERGE flag from bio to request
authorShaohua Li <shli@fb.com>
Mon, 25 Apr 2016 23:50:14 +0000 (16:50 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 26 Apr 2016 01:13:44 +0000 (19:13 -0600)
bio might have NOMERGE flag set, for example blk_queue_split sets it.
When we initiate request, copy this flag too.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blk_types.h

index 86a38ea1823f3307caec422941fcb15dcf7c4e25..77e5d81f07aaf36533e3e016267229ae64a21a74 100644 (file)
@@ -208,7 +208,7 @@ enum rq_flag_bits {
 #define REQ_COMMON_MASK \
        (REQ_WRITE | REQ_FAILFAST_MASK | REQ_SYNC | REQ_META | REQ_PRIO | \
         REQ_DISCARD | REQ_WRITE_SAME | REQ_NOIDLE | REQ_FLUSH | REQ_FUA | \
-        REQ_SECURE | REQ_INTEGRITY)
+        REQ_SECURE | REQ_INTEGRITY | REQ_NOMERGE)
 #define REQ_CLONE_MASK         REQ_COMMON_MASK
 
 #define BIO_NO_ADVANCE_ITER_MASK       (REQ_DISCARD|REQ_WRITE_SAME)