]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: explicitly update mpath disk capacity on revalidation
authorAnthony Iliopoulos <ailiop@suse.com>
Tue, 14 Jul 2020 11:11:59 +0000 (13:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 16 Jul 2020 14:40:27 +0000 (16:40 +0200)
commitf6a9e1ff043887ded6b4c69fefb6949ffea84a90
tree3a2528b0441658f0c8208048c04c7cd81d029383
parent436f93b69e6c0c7f6f8e2cc293415beb10113a10
nvme: explicitly update mpath disk capacity on revalidation

Commit f7f8f71c61645b ("nvme: fix possible deadlock when I/O is
blocked") reverted multipath head disk revalidation due to deadlocks
caused by holding the bd_mutex during revalidate.

Updating the multipath disk blockdev size is still required though for
userspace to be able to observe any resizing while the device is
mounted. Directly update the bdev inode size to avoid unnecessarily
holding the bdev->bd_mutex.

Fixes: f7f8f71c61645b ("nvme: fix possible deadlock when I/O is
blocked")

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h