Re: [PATCH rdma-next] RDMA/core: release devices_rwsem when calling device_del
From: Jason Gunthorpe
Date: Mon Jan 19 2026 - 14:53:31 EST
On Mon, Jan 19, 2026 at 11:43:52AM -0800, Sharath Srinivasan wrote:
> The sync strategy in remove_all_compat_devs() can improved
> by adopting that of rdma_dev_exit_net() which releases devices_rwsem
> before calling remove_one_compat_dev()/device_del().
>
> Also fixes a comment typo in rdma_dev_exit_net().
You cannot change this locking without writing a huge commit message
explaining in detail the reason why any change like this is safe..
Jason