aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Halevy2010-09-13 14:32:19 -0500
committerJens Axboe2010-09-21 04:49:17 -0500
commita45dc2d2b8d1afa57c91dcfac224e50ffcd3f805 (patch)
treeaa36b478521c748f1699390e3f4517a4d9fd6644 /block/blk-map.c
parentb0722cb1ac84863f57471d2b254457c100319300 (diff)
downloadkernel-common-a45dc2d2b8d1afa57c91dcfac224e50ffcd3f805.tar.gz
kernel-common-a45dc2d2b8d1afa57c91dcfac224e50ffcd3f805.tar.xz
kernel-common-a45dc2d2b8d1afa57c91dcfac224e50ffcd3f805.zip
block: fix blk_rq_map_kern bio direction flag
This bug was introduced in 7b6d91daee5cac6402186ff224c3af39d79f4a0e "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>
Diffstat (limited to 'block/blk-map.c')
-rw-r--r--block/blk-map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-map.c b/block/blk-map.c
index c65d7593f7f..ade0a08c909 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -307,7 +307,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf,
307 return PTR_ERR(bio); 307 return PTR_ERR(bio);
308 308
309 if (rq_data_dir(rq) == WRITE) 309 if (rq_data_dir(rq) == WRITE)
310 bio->bi_rw |= (1 << REQ_WRITE); 310 bio->bi_rw |= REQ_WRITE;
311 311
312 if (do_copy) 312 if (do_copy)
313 rq->cmd_flags |= REQ_COPY_USER; 313 rq->cmd_flags |= REQ_COPY_USER;