summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShao Mingyin <shao.mingyin@zte.com.cn>2026-11-14 02:02:53 +0800
committerKeith Busch <kbusch@kernel.org>2026-11-16 07:42:47 -0800
commit8c1f99419b6cc51892e259497c8e10a5d079621a (patch)
treea53f6b63730cbb99099fb976c589fdb9c9a7f69a /tools/perf/scripts/python
parent347d50d92e25d4b9c50c5f5c1d8b727b9c88d12c (diff)
nvmet-fcloop: free the LS request when delivery fails
fcloop_h2t_ls_req() allocates a fcloop_lsreq from lsreq_cache and hands it to nvmet_fc_rcv_ls_req(). That function only takes ownership on success and returns an error without invoking any completion callback when the target port is shutting down, the LS payload is too large, or the target has no free LS request slot. The error is returned as-is, so the fcloop_lsreq is leaked; every failed LS during a target port teardown or an LS slot exhaustion loses one slab object. The target-to-host direction already frees the request when nvme_fc_rcv_ls_req() fails. Do the same here. Fixes: 772042dd38ee ("nvmet-fcloop: allocate/free fcloop_lsreq directly") Cc: stable@vger.kernel.org Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions