Skip to content

Commit

Permalink
[PATCH] remove unnecessary blk_queue_bounce in SG_IO
Browse files Browse the repository at this point in the history
When I converted the original patch, I left unnecessary blk_queue_bounce in
SG_IO.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
FUJITA Tomonori authored and Jens Axboe committed Dec 12, 2006
1 parent 77d172c commit 3353026
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions block/scsi_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,6 @@ static int sg_io(struct file *file, request_queue_t *q,

rq->cmd_type = REQ_TYPE_BLOCK_PC;

/*
* bounce this after holding a reference to the original bio, it's
* needed for proper unmapping
*/
if (rq->bio)
blk_queue_bounce(q, &rq->bio);

rq->timeout = jiffies_to_msecs(hdr->timeout);
if (!rq->timeout)
rq->timeout = q->sg_timeout;
Expand Down

0 comments on commit 3353026

Please sign in to comment.