]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: set 0 capacity if namespace block size exceeds PAGE_SIZE
authorSagi Grimberg <sagi@grimberg.me>
Mon, 11 Mar 2019 22:02:25 +0000 (15:02 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2019 14:51:42 +0000 (16:51 +0200)
commitb8d560981b57668256591dd3f989598fcb2c73be
tree3795515e23e65d395937f0a54f3dcd77a7b8f62a
parent8fb18d3dd610f5687652c2997f67fb23b48c8c2e
nvme: set 0 capacity if namespace block size exceeds PAGE_SIZE

If our target exposed a namespace with a block size that is greater
than PAGE_SIZE, set 0 capacity on the namespace as we do not support it.

This issue encountered when the nvmet namespace was backed by a tempfile.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c