Re: [PATCH 1/3] infiniband: hw: hfi1: verbs.c: Use built-in RCU list checking
From: Jason Gunthorpe
Date: Thu Jan 09 2020 - 13:10:43 EST
On Wed, Jan 08, 2020 at 01:38:50PM +0530, madhuparnabhowmik04@xxxxxxxxx wrote:
> Alternatively, it can be lockdep_is_held(ibp->rvp.lock).
> Please refer to the macro(link below) and let me know if the usage of lock_is_held()
> in the patch is correct.
lock_is_held is the normal way to write this
Jason