linux_dsm_epyc7002/drivers/nvme/host
Anthony Iliopoulos fab7772bfb nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns
When CONFIG_NVME_MULTIPATH is set, only the hidden gendisk associated
with the per-controller ns is run through revalidate_disk when a
rescan is triggered, while the visible blockdev never gets its size
(bdev->bd_inode->i_size) updated to reflect any capacity changes that
may have occurred.

This prevents online resizing of nvme block devices and in extension of
any filesystems atop that will are unable to expand while mounted, as
userspace relies on the blockdev size for obtaining the disk capacity
(via BLKGETSIZE/64 ioctls).

Fix this by explicitly revalidating the actual namespace gendisk in
addition to the per-controller gendisk, when multipath is enabled.

Signed-off-by: Anthony Iliopoulos <ailiopoulos@suse.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2019-07-30 13:29:20 +03:00
..
core.c nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns 2019-07-30 13:29:20 +03:00
fabrics.c nvme: introduce nvme_is_fabrics to check fabrics cmd 2019-06-21 11:08:38 +02:00
fabrics.h nvme-fabrics: convert to SPDX identifiers 2019-02-20 07:22:13 -07:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c for-linus-20190715 2019-07-15 21:20:52 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
lightnvm.c block: remove blk_init_request_from_bio 2019-06-20 10:29:22 -06:00
Makefile nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
multipath.c nvme: fix multipath crash when ANA is deactivated 2019-07-23 17:46:57 +02:00
nvme.h nvme: fix multipath crash when ANA is deactivated 2019-07-23 17:46:57 +02:00
pci.c Revert "nvme-pci: don't create a read hctx mapping without read queues" 2019-07-23 17:47:02 +02:00
rdma.c 5.3 Merge window RDMA pull request 2019-07-15 20:38:15 -07:00
tcp.c nvme-tcp: don't use sendpage for SLAB pages 2019-07-09 14:18:09 -07:00
trace.c nvme-trace: add delete completion and submission queue to admin cmds tracer 2019-07-09 14:15:37 -07:00
trace.h nvme-trace: print result and status in hex format 2019-06-21 11:12:37 +02:00