mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-14 01:57:34 +07:00
[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 <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
77d172ce27
commit
335302618f
@ -271,13 +271,6 @@ static int sg_io(struct file *file, request_queue_t *q,
|
|||||||
|
|
||||||
rq->cmd_type = REQ_TYPE_BLOCK_PC;
|
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);
|
rq->timeout = jiffies_to_msecs(hdr->timeout);
|
||||||
if (!rq->timeout)
|
if (!rq->timeout)
|
||||||
rq->timeout = q->sg_timeout;
|
rq->timeout = q->sg_timeout;
|
||||||
|
Loading…
Reference in New Issue
Block a user