Re: [PATCH] nvmet-fcloop: fail LS request synchronously when remote port is gone
From: Nguyen Ngoc Thang
Date: Mon Sep 21 2026 - 11:04:14 EST
Hi Daniel,
Thanks for the review, you are right: the async -ECONNREFUSED completion
is how an HBA would behave, so failing synchronously in fcloop changes
that.
I dropped the fcloop change. v2 keeps fcloop as is and flushes nvmet_wq a
second time in nvmet_fc_unregister_targetport(), so the LS completion
queued by nvmet_fc_delete_assoc_work() during the first flush has run
before nvmet_fc_free_pending_reqs() frees the remaining requests:
[PATCH v2] nvmet-fc: flush nvmet_wq twice on targetport unregister
Message-ID: <20260921145651.17131-1-ngocthang2710.1999@xxxxxxxxx>
Hannes' blktest request is covered by nvme/071, sent separately to
linux-block. It fails with a UAF on an unpatched kernel and passes with v2.
Thanks,
Thang