]> www.infradead.org Git - users/hch/misc.git/commit
nvmet-fc: free pending reqs on tgtport unregister
authorDaniel Wagner <wagi@kernel.org>
Wed, 7 May 2025 12:23:08 +0000 (14:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 14:05:48 +0000 (16:05 +0200)
commit40f6b2f7f00d4840b727056f9c5c219ef47cf504
tree929cffa129d36c5c3038a3e5ae0cb3151baac55a
parent8245423d6770d0dbbc5eed7336a0eaeed0a8bd5b
nvmet-fc: free pending reqs on tgtport unregister

When nvmet_fc_unregister_targetport is called by the LLDD, it's not
possible to communicate with the host, thus all pending request will not
be process. Thus explicitly free them.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fc.c