[PATCH v3] nvmet-rdma: Correctly handle RDMA device hot removal

Christoph Hellwig hch at lst.de
Tue Aug 2 05:53:48 PDT 2016


On Tue, Aug 02, 2016 at 09:39:48AM +0300, Sagi Grimberg wrote:
> I'm not exactly sure what you mean. Do you mean placing
> cmpxchg in nvmet_rdma_device_removal()? To what we cmp
> when we want to xchg?
>
> Care to explain in a bit more detail?

Right, plain xchg() should be enough.  E.g. do an xchg both
in the device removal handler and ->remove_port and only delete
the CM_ID if the caller was the one taking it out the private
data.



More information about the Linux-nvme mailing list