diff options
| author | Christoph Hellwig <[email protected]> | 2020-07-01 08:59:39 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-07-01 13:27:23 +0000 |
| commit | f695ca3886ce72b027af7aa6040cd420cae2088c (patch) | |
| tree | d1b933667a0a5680809554baf207e5aca90a790a /drivers/lightnvm/pblk-init.c | |
| parent | fs: remove a weird comment in submit_bh_wbc (diff) | |
| download | kernel-f695ca3886ce72b027af7aa6040cd420cae2088c.tar.gz kernel-f695ca3886ce72b027af7aa6040cd420cae2088c.zip | |
block: remove the request_queue argument from blk_queue_split
The queue can be trivially derived from the bio, so pass one less
argument.
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
| -rw-r--r-- | drivers/lightnvm/pblk-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index 6e677ff62cc9..7a4a1b7a941d 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -63,7 +63,7 @@ static blk_qc_t pblk_make_rq(struct request_queue *q, struct bio *bio) * constraint. Writes can be of arbitrary size. */ if (bio_data_dir(bio) == READ) { - blk_queue_split(q, &bio); + blk_queue_split(&bio); pblk_submit_read(pblk, bio); } else { /* Prevent deadlock in the case of a modest LUN configuration @@ -71,7 +71,7 @@ static blk_qc_t pblk_make_rq(struct request_queue *q, struct bio *bio) * leaves at least 256KB available for user I/O. */ if (pblk_get_secs(bio) > pblk_rl_max_io(&pblk->rl)) - blk_queue_split(q, &bio); + blk_queue_split(&bio); pblk_write_to_cache(pblk, bio, PBLK_IOTYPE_USER); } |
