[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e0b4773c-36a1-cb02-e87f-a164cfbf3633@huawei.com>
Date: Thu, 22 Nov 2018 18:35:00 +0800
From: Gao Xiang <gaoxiang25@...wei.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: <devel@...verdev.osuosl.org>, <linux-erofs@...ts.ozlabs.org>,
Chao Yu <yuchao0@...wei.com>,
LKML <linux-kernel@...r.kernel.org>, <weidu.du@...wei.com>,
Miao Xie <miaoxie@...wei.com>
Subject: Re: [PATCH 08/10] staging: erofs: locked before registering for all
new workgroups
Hi Greg,
On 2018/11/22 18:24, Greg Kroah-Hartman wrote:
>> + /* lock all primary followed works before visible to others */
>> + if (unlikely(!mutex_trylock(&work->lock)))
>> + /* for a new workgroup, try_lock *never* fails */
>> + DBG_BUGON(1);
> Again, drop this, if it never fails, then there's no need for this. If
> it can fail, then properly handle it.
>
> And trylock can fail, so this needs to be fixed.
OK, I will drop this.
Thanks,
Gao Xiang
>
> thanks,
Powered by blists - more mailing lists