File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -864,9 +864,6 @@ static struct request *attempt_merge(struct request_queue *q,
864
864
if (req_op (req ) != req_op (next ))
865
865
return NULL ;
866
866
867
- if (rq_data_dir (req ) != rq_data_dir (next ))
868
- return NULL ;
869
-
870
867
if (req -> bio && next -> bio ) {
871
868
/* Don't merge requests with different write hints. */
872
869
if (req -> bio -> bi_write_hint != next -> bio -> bi_write_hint )
@@ -986,10 +983,6 @@ bool blk_rq_merge_ok(struct request *rq, struct bio *bio)
986
983
if (req_op (rq ) != bio_op (bio ))
987
984
return false;
988
985
989
- /* different data direction or already started, don't merge */
990
- if (bio_data_dir (bio ) != rq_data_dir (rq ))
991
- return false;
992
-
993
986
/* don't merge across cgroup boundaries */
994
987
if (!blk_cgroup_mergeable (rq , bio ))
995
988
return false;
You can’t perform that action at this time.
0 commit comments