[PATCH 5/8] nvme: sync the namespace scanning during ctrl start

Max Gurtovoy mgurtovoy at nvidia.com
Tue Jan 23 16:47:30 PST 2024



On 23/01/2024 11:02, Christoph Hellwig wrote:
> On Mon, Jan 22, 2024 at 04:56:56PM +0200, Max Gurtovoy wrote:
>> From: Ori Evron <oevron at nvidia.com>
>>
>> The namespace identifiers may change during the re-connection flow.
> 
> How?
> 

for example if a the PI was supported on the port before re-connection 
and wasn't supported after the re-connection.
We must first identify the namespace format/identifiers before kicking 
the old requests (otherwise we will get IO errors).
We must make sure that the identifiers are equal to the ns_head 
identifiers (otherwise we will remove the path from mpath and allocate a 
new ns_head).

maybe it will be simpler to reproduce if the namespace uuid/nguid change 
after re-connection (I didn't test this scenario)



More information about the Linux-nvme mailing list