]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: Fix setting logical block format when revalidating
authorKeith Busch <keith.busch@intel.com>
Fri, 27 Oct 2017 19:51:22 +0000 (13:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Oct 2017 14:22:41 +0000 (08:22 -0600)
commit4601862266b428e022a8d91c02f5187ee23b1d27
tree55903d1c6f06321ee7bd3bfc5cf3ffc063c136cd
parent9af0aeae19f3b96328cba3aeeb6f64d5308fe397
nvme: Fix setting logical block format when revalidating

Revalidating the disk needs to set the logical block format and capacity,
otherwise it can't figure out if the users modified anything about
the namespace.

Fixes: b9a3dfd7ca02 ("nvme: remove nvme_revalidate_ns")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c