[PATCH] nvme-tcp: proper handling of tcp socket closing flows

Sagi Grimberg sagi at grimberg.me
Thu Jan 28 18:54:06 EST 2021


> Release work might get invoked if nvmet_tcp_set_queue_sock is completed successfully and set sk_user_data, but sk_state_change is triggered by network stack before queue_work_on is invoked. That case - there is a race between release_work and accept_work.

This is just like any other case where release_work races with io_work.
That is not an exception from other cases which release_work will need
to fence from.



More information about the Linux-nvme mailing list