Re: [PATCH v2] nvme: fix deadlock between reset and scan

From: Keith Busch
Date: Thu Nov 30 2023 - 17:28:20 EST


On Thu, Nov 30, 2023 at 10:13:37AM +0800, Bitao Hu wrote:
> Fix by marking the ctrl with say NVME_CTRL_FROZEN flag set in
> nvme_start_freeze and cleared in nvme_unfreeze. Then the scan can check
> it before adding the new namespace (under the namespaces_rwsem).

Thanks for the detailed explanation. This looks good to me.

Reviewed-by: Keith Busch <kbsuch@xxxxxxxxxx>