[PATCH] nvmet-fcloop: fail LS request synchronously when remote port is gone
Nguyen Ngoc Thang
ngocthang2710.1999 at gmail.com
Mon Sep 21 07:59:02 PDT 2026
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 at gmail.com>
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
More information about the Linux-nvme
mailing list