[PATCH v3 15/18] nvmet-fc: free pending reqs on tgtport unregister
Christoph Hellwig
hch at lst.de
Thu Mar 20 23:19:03 PDT 2025
On Tue, Mar 18, 2025 at 11:40:09AM +0100, Daniel Wagner wrote:
> nvmet-fc: merge with f200af94ac9d ("nvmet-fc: free pending reqs on tgtport unregister")
What is this supposed to mean?
> + for (;;) {
> + lsop = list_first_entry_or_null(&tgtport->ls_req_list,
> + struct nvmet_fc_ls_req_op,
> + lsreq_list);
> + if (!lsop)
> + break;
while ((lsop = list_first_entry_or_null(&tgtport->ls_req_list,
struct nvmet_fc_ls_req_op, lsreq_list))) {
> +
> + list_del(&lsop->lsreq_list);
Another case where I'd really love to help the list_pop helper Linus
flamed me for :(
More information about the Linux-nvme
mailing list