[PATCH] nvmet-fc: extend critical section in nvmet_fc_remove_port()
Maurizio Lombardi
mlombard at arkamax.eu
Tue Oct 27 07:58:13 PDT 2026
On Tue Oct 27, 2026 at 3:43 PM CET, paritoshpotukuchi wrote:
> @@ -2932,6 +2927,8 @@ nvmet_fc_remove_port(struct nvmet_port *port)
> nvmet_fc_tgtport_put(tgtport);
> }
>
> + spin_unlock_irqrestore(&nvmet_fc_tgtlock, flags);
> +
> kfree(pe);
> }
>
I don't think this safe.
nvmet_fc_tgtport_put() can end up calling fcloop_targetport_delete()
which calls flush_work(), therefore you call a blocking function while
in atomic context
Maurizio
More information about the Linux-nvme
mailing list