aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 495bdc4a23da..2a5b19204546 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2505,9 +2505,7 @@ EXPORT_SYMBOL_GPL(blk_rq_unprep_clone);
2505static void __blk_rq_prep_clone(struct request *dst, struct request *src) 2505static void __blk_rq_prep_clone(struct request *dst, struct request *src)
2506{ 2506{
2507 dst->cpu = src->cpu; 2507 dst->cpu = src->cpu;
2508 dst->cmd_flags = (rq_data_dir(src) | REQ_NOMERGE); 2508 dst->cmd_flags = (src->cmd_flags & REQ_CLONE_MASK) | REQ_NOMERGE;
2509 if (src->cmd_flags & REQ_DISCARD)
2510 dst->cmd_flags |= REQ_DISCARD;
2511 dst->cmd_type = src->cmd_type; 2509 dst->cmd_type = src->cmd_type;
2512 dst->__sector = blk_rq_pos(src); 2510 dst->__sector = blk_rq_pos(src);
2513 dst->__data_len = blk_rq_bytes(src); 2511 dst->__data_len = blk_rq_bytes(src);