From: FUJITA Tomonori Date: Tue, 12 Dec 2006 09:26:55 +0000 (+0100) Subject: [PATCH] remove unnecessary blk_queue_bounce in SG_IO X-Git-Tag: firefly_0821_release~31885^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=335302618f47b43e1204d24a3edb65a3e5bc8c03;p=firefly-linux-kernel-4.4.55.git [PATCH] remove unnecessary blk_queue_bounce in SG_IO When I converted the original patch, I left unnecessary blk_queue_bounce in SG_IO. Signed-off-by: FUJITA Tomonori Signed-off-by: Mike Christie Signed-off-by: Jens Axboe --- diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index 045cabd3d4b4..f322b6a441d8 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -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;