]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: use bio_set_dev to assign ->bi_bdev
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:33:06 +0000 (15:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 15:50:01 +0000 (08:50 -0700)
commitb03b509450a7b33a1188865dada57da0f7ba9994
treef9dd55409eb9d21b268198ef4d7fe1a39ae8960d
parent39f44fd80a60bfbc63e573c27b529fc5c04b74e4
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>
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/multipath.c