path: root/block/bsg.c
diff options
authorGuoqing Jiang <>2021-01-25 05:49:58 +0100
committerJens Axboe <>2021-01-24 21:52:39 -0700
commit684da7628d93bbdcfba9081b917d99f29ad04c23 (patch)
tree01b53c7c7ab82b5d8e38ec74290074c6739cda48 /block/bsg.c
parent8eeed0b554b9fda61be05b17cbb0b89ea2cbbb65 (diff)
block: remove unnecessary argument from blk_execute_rq
We can remove 'q' from blk_execute_rq as well after the previous change in blk_execute_rq_nowait. And more importantly it never really was needed to start with given that we can trivial derive it from struct request. Cc: Cc: Cc: Cc: Cc: Cc: Acked-by: Ulf Hansson <> # for mmc Signed-off-by: Guoqing Jiang <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/bsg.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c
index 3d78e843a83f..bd10922d5cbb 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -183,7 +183,7 @@ static int bsg_sg_io(struct request_queue *q, fmode_t mode, void __user *uarg)
bio = rq->bio;
- blk_execute_rq(q, NULL, rq, !(hdr.flags & BSG_FLAG_Q_AT_TAIL));
+ blk_execute_rq(NULL, rq, !(hdr.flags & BSG_FLAG_Q_AT_TAIL));
ret = rq->q->bsg_dev.ops->complete_rq(rq, &hdr);