Re: [PATCH v2] scsi: Fix the issue that the disk capacity set to zero
From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-07-29 03:37:43
Also in:
lkml
From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-07-29 03:37:43
Also in:
lkml
On Tue, 27 Jul 2021 11:44:55 +0800, lijinlin3@huawei.com wrote:
After add physical volumes to a volume group through vgextend, kernel will rescan partitions, which will read the capacity of the device. If the device status is set to offline through sysfs at this time, read capacity command will return a result which the host byte is DID_NO_CONNECT, the capacity of the device will be set to zero in read_capacity_error(). However, the capacity of the device can't be reread after reset the device status to running, is still zero. [...]
Applied to 5.14/scsi-fixes, thanks!
[1/1] scsi: Fix the issue that the disk capacity set to zero
https://git.kernel.org/mkp/scsi/c/d5c8db0e5cd4
--
Martin K. Petersen Oracle Linux Engineering