From mboxrd@z Thu Jan 1 00:00:00 1970 From: leon@kernel.org (Leon Romanovsky) Date: Thu, 6 Jul 2017 11:33:01 +0300 Subject: [PATCH v2 1/3] RDMA/core: make ib_device.add method optional In-Reply-To: <14303999-2479-653c-719f-ac5a5b03fb33@grimberg.me> References: <1498983652-18250-1-git-send-email-sagi@grimberg.me> <1498983652-18250-2-git-send-email-sagi@grimberg.me> <14303999-2479-653c-719f-ac5a5b03fb33@grimberg.me> Message-ID: <20170706083301.GS1528@mtr-leonro.local> On Thu, Jul 06, 2017@10:51:36AM +0300, Sagi Grimberg wrote: > > ib_clients can indeed fill .add to NULL, but then they will not see > > any device removal notifications. The reason is that that > > ib_register_client and ib_register_device checked existence of .add > > before adding the creating a corresponding client_data and adding > > it to the list. Simple condition reverse fixes the issue. > > > > Reviewed-by: Johannes Thumshirn > > Reviewed-by: Christoph Hellwig > > Signed-off-by: Sagi Grimberg > > Any RDMA folks? It looks right and two gentlemen above already reviewed it. Thanks, Reviewed-by: Leon Romanovsky -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: