[PATCH v3] nvmet-tcp: Fix a possible sporadic response drops in weakly ordered arch

Keith Busch kbusch at kernel.org
Fri Feb 28 10:00:13 PST 2025


On Wed, Feb 26, 2025 at 09:28:12AM +0200, Meir Elisha wrote:
> The order in which queue->cmd and rcv_state are updated is crucial.
> If these assignments are reordered by the compiler, the worker might not
> get queued in nvmet_tcp_queue_response(), hanging the IO. to enforce the
> the correct reordering, set rcv_state using smp_store_release().
> 
> Fixes: bdaf13279192 ("nvmet-tcp: fix a segmentation fault during io parsing error")

Thanks, applied to nvme-6.14.



More information about the Linux-nvme mailing list