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

Christoph Hellwig hch at lst.de
Mon Aug 1 08:50:54 PDT 2016


On Mon, Aug 01, 2016 at 02:30:37PM +0300, Sagi Grimberg wrote:
>> How is ->remove_port synchronized vs the RDMA/CM even handler?
>
> Easy, it isn't :)
>
> So we have three choices here:
> 1. Add a lock in nvmet_port that only rdma will use for now (don't like
> it)
> or
> 2. Add nvmet_rdma_port as nvmet_port->priv with a lock (don't like it)
> or
> 3. take the global nvmet_config_sem (hate it)
>
> Any preferences?

(4) use cmpxchg?



More information about the Linux-nvme mailing list