]> err.no Git - linux-2.6/commitdiff
[PATCH] remove unnecessary blk_queue_bounce in SG_IO
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 12 Dec 2006 09:26:55 +0000 (10:26 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 12 Dec 2006 09:26:55 +0000 (10:26 +0100)
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>
block/scsi_ioctl.c

index 045cabd3d4b4b1a6559ade2b9c2da1b8a24d0172..f322b6a441d82fbe7db9a177ac0837fc54618cf2 100644 (file)
@@ -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;