]> 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)
commit6359c311ddba65e90425c3df9f800fe60fde2f73
tree3a2528b0441658f0c8208048c04c7cd81d029383
parentfbac4a7bd1d270960c6bc3c95a397e6331896a3c
nvme: explicitly update mpath disk capacity on revalidation

Commit 9201b11c160717 ("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: 9201b11c160717 ("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