Skip to content

Commit a45dc2d

Browse files
Benny HalevyJens Axboe
authored andcommitted
block: fix blk_rq_map_kern bio direction flag
This bug was introduced in 7b6d91d "block: unify flags for struct bio and struct request" Cc: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent b0722cb commit a45dc2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-map.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf,
307307
return PTR_ERR(bio);
308308

309309
if (rq_data_dir(rq) == WRITE)
310-
bio->bi_rw |= (1 << REQ_WRITE);
310+
bio->bi_rw |= REQ_WRITE;
311311

312312
if (do_copy)
313313
rq->cmd_flags |= REQ_COPY_USER;

0 commit comments

Comments
 (0)