Re: [PATCH v2 for-next 7/7] RDMA/core: Remove redundant BUG_ON

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021/4/13 1:51, Jason Gunthorpe wrote:
> On Wed, Apr 07, 2021 at 04:15:53PM +0800, Weihang Li wrote:
>> It's ok if the refcount of cm_id is zero when release the reference of it,
>> there is no need to call BUG_ON.
> 
> Huh? No it isn't.
> 
> If you want to remove this BUG_ON then convert this to a refcount_t
> and rely on refcount debugging instead.
> 
> Jason
> 

I see. I will try using refcount_t instead.

Thank you
Weihang



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux