diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-27 12:22:57 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-02 21:08:49 -0600 |
commit | 46754bd056053785d7079f1d48f7f571728dcb47 (patch) | |
tree | 19ace24d9b5561c42c727d066d971940b96a0854 /drivers/md/dm.c | |
parent | 51d798cdb5c219000fe76a3ffbcaa846b689ba80 (diff) | |
download | linux-46754bd056053785d7079f1d48f7f571728dcb47.tar.gz linux-46754bd056053785d7079f1d48f7f571728dcb47.tar.bz2 linux-46754bd056053785d7079f1d48f7f571728dcb47.zip |
block: move ->bio_split to the gendisk
Only non-passthrough requests are split by the block layer and use the
->bio_split bio_set. Move it from the request_queue to the gendisk.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220727162300.3089193-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index fbcffcfb2304..28bd4a35b86b 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1016,7 +1016,7 @@ static void dm_wq_requeue_work(struct work_struct *work) while (io) { struct dm_io *next = io->next; - dm_io_rewind(io, &md->queue->bio_split); + dm_io_rewind(io, &md->disk->bio_split); io->next = NULL; __dm_io_complete(io, false); |