summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/lightnvm.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-01-26 15:33:06 +0100
committerJens Axboe <axboe@kernel.dk>2021-01-26 08:50:01 -0700
commita7c7f7b2b641bef52212fbe8be4a66ede043d3c7 (patch)
treef9dd55409eb9d21b268198ef4d7fe1a39ae8960d /drivers/nvme/host/lightnvm.c
parenta5bf0a92e1b8282c93018383b2526ca59602dd08 (diff)
nvme: use bio_set_dev to assign ->bi_bdev
Always use the bio_set_dev helper to assign ->bi_bdev to make sure other state related to the device is uptodate. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/lightnvm.c')
-rw-r--r--drivers/nvme/host/lightnvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c
index ec38128f51e9..b705988629f2 100644
--- a/drivers/nvme/host/lightnvm.c
+++ b/drivers/nvme/host/lightnvm.c
@@ -816,7 +816,7 @@ static int nvme_nvm_submit_user_cmd(struct request_queue *q,
vcmd->ph_rw.metadata = cpu_to_le64(metadata_dma);
}
- bio->bi_bdev = ns->disk->part0;
+ bio_set_dev(bio, ns->disk->part0);
}
blk_execute_rq(NULL, rq, 0);