diff options
Diffstat (limited to 'block/bsg.c')
-rw-r--r-- | block/bsg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c index e5214c148096..ff46addde5d8 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -196,7 +196,6 @@ static int blk_fill_sgv4_hdr_rq(struct request_queue *q, struct request *rq, | |||
196 | * fill in request structure | 196 | * fill in request structure |
197 | */ | 197 | */ |
198 | rq->cmd_len = hdr->request_len; | 198 | rq->cmd_len = hdr->request_len; |
199 | rq->cmd_type = REQ_TYPE_BLOCK_PC; | ||
200 | 199 | ||
201 | rq->timeout = msecs_to_jiffies(hdr->timeout); | 200 | rq->timeout = msecs_to_jiffies(hdr->timeout); |
202 | if (!rq->timeout) | 201 | if (!rq->timeout) |
@@ -273,6 +272,8 @@ bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr, fmode_t has_write_perm, | |||
273 | rq = blk_get_request(q, rw, GFP_KERNEL); | 272 | rq = blk_get_request(q, rw, GFP_KERNEL); |
274 | if (!rq) | 273 | if (!rq) |
275 | return ERR_PTR(-ENOMEM); | 274 | return ERR_PTR(-ENOMEM); |
275 | blk_rq_set_block_pc(rq); | ||
276 | |||
276 | ret = blk_fill_sgv4_hdr_rq(q, rq, hdr, bd, has_write_perm); | 277 | ret = blk_fill_sgv4_hdr_rq(q, rq, hdr, bd, has_write_perm); |
277 | if (ret) | 278 | if (ret) |
278 | goto out; | 279 | goto out; |