stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v5] locking/rwsem: Make handoff bit handling more consistent
       [not found]           ` <2b6ed542-b3e0-1a87-33ac-d52fc0e0339c@oracle.com>
@ 2022-04-12 17:04             ` Waiman Long
  2022-04-14 10:48               ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Waiman Long @ 2022-04-12 17:04 UTC (permalink / raw)
  To: john.p.donnelly, chenguanyou, gregkh
  Cc: dave, hdanton, linux-kernel, mazhenhua, mingo, peterz,
	quic_aiquny, will, sashal, stable

On 4/12/22 12:28, john.p.donnelly@oracle.com wrote:
> On 4/11/22 4:07 PM, Waiman Long wrote:
>>
>> On 4/11/22 17:03, john.p.donnelly@oracle.com wrote:
>>>
>>>>>
>>>>> I have reached out to Waiman and he suggested this for our next 
>>>>> test pass:
>>>>>
>>>>>
>>>>> 1ee326196c6658 locking/rwsem: Always try to wake waiters in 
>>>>> out_nolock path
>>>>
>>>> Does this commit help to avoid the lockup problem?
>>>>
>>>> Commit 1ee326196c6658 fixes a potential missed wakeup problem when 
>>>> a reader first in the wait queue is interrupted out without 
>>>> acquiring the lock. It is actually not a fix for commit 
>>>> d257cc8cb8d5. However, this commit changes the out_nolock path 
>>>> behavior of writers by leaving the handoff bit set when the wait 
>>>> queue isn't empty. That likely makes the missed wakeup problem 
>>>> easier to reproduce.
>>>>
>>>> Cheers,
>>>> Longman
>>>>
>>>
>>> Hi,
>>>
>>>
>>> We are testing now
>>>
>>> ETA for fio soak test completion is  ~15hr from now.
>>>
>>> I wanted to share the stack traces for future reference + occurrences.
>>>
>> I am looking forward to your testing results tomorrow.
>>
>> Cheers,
>> Longman
>>
> Hi
>
>  Our 24hr fio soak test with :
>
>  1ee326196c6658 locking/rwsem: Always try to wake waiters in 
> out_nolock path
>
>
>  applied to 5.15.30  passed.
>
>  I suggest you append  1ee326196c6658 with :
>
>
>  cc: stable
>
>   Fixes: d257cc8cb8d5 ("locking/rwsem: Make handoff bit handling more 
> consistent")
>
>
> I'll leave the implementation details up to the core maintainers how 
> to do that ;-)

Thanks for the test.

The patch has already been in the tip tree. It may not be easy to add a 
Fixes tag to it. Anyway, I will encourage stable tree maintainer to take 
it as it does fix a problem as shown in your test.

Cheers,
Longman


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v5] locking/rwsem: Make handoff bit handling more consistent
  2022-04-12 17:04             ` [PATCH v5] locking/rwsem: Make handoff bit handling more consistent Waiman Long
@ 2022-04-14 10:48               ` Greg KH
  2022-04-14 15:18                 ` Waiman Long
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2022-04-14 10:48 UTC (permalink / raw)
  To: Waiman Long
  Cc: john.p.donnelly, chenguanyou, dave, hdanton, linux-kernel,
	mazhenhua, mingo, peterz, quic_aiquny, will, sashal, stable

On Tue, Apr 12, 2022 at 01:04:05PM -0400, Waiman Long wrote:
> The patch has already been in the tip tree. It may not be easy to add a
> Fixes tag to it. Anyway, I will encourage stable tree maintainer to take it
> as it does fix a problem as shown in your test.

I have no idea what you want me to do here.  Please be explicit...

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v5] locking/rwsem: Make handoff bit handling more consistent
  2022-04-14 10:48               ` Greg KH
@ 2022-04-14 15:18                 ` Waiman Long
  2022-04-14 15:42                   ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Waiman Long @ 2022-04-14 15:18 UTC (permalink / raw)
  To: Greg KH
  Cc: john.p.donnelly, chenguanyou, dave, hdanton, linux-kernel,
	mazhenhua, mingo, peterz, quic_aiquny, will, sashal, stable

On 4/14/22 06:48, Greg KH wrote:
> On Tue, Apr 12, 2022 at 01:04:05PM -0400, Waiman Long wrote:
>> The patch has already been in the tip tree. It may not be easy to add a
>> Fixes tag to it. Anyway, I will encourage stable tree maintainer to take it
>> as it does fix a problem as shown in your test.
> I have no idea what you want me to do here.  Please be explicit...
>
I would like the stable trees to include commit 1ee326196c66 
("locking/rwsem: Always try to wake waiters in out_nolock path") after 
it is merged into the mainline in the v5.19 merge window. It should be 
applied to the stable trees that have incorporated the backport of 
commit d257cc8cb8d5 ("locking/rwsem: Make handoff bit handling more 
consistent") since this commit seems to make the missed wakeup problem 
easier to show up.

Cheers,
Longman




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v5] locking/rwsem: Make handoff bit handling more consistent
  2022-04-14 15:18                 ` Waiman Long
@ 2022-04-14 15:42                   ` Greg KH
  2022-04-14 15:44                     ` Waiman Long
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2022-04-14 15:42 UTC (permalink / raw)
  To: Waiman Long
  Cc: john.p.donnelly, chenguanyou, dave, hdanton, linux-kernel,
	mazhenhua, mingo, peterz, quic_aiquny, will, sashal, stable

On Thu, Apr 14, 2022 at 11:18:23AM -0400, Waiman Long wrote:
> On 4/14/22 06:48, Greg KH wrote:
> > On Tue, Apr 12, 2022 at 01:04:05PM -0400, Waiman Long wrote:
> > > The patch has already been in the tip tree. It may not be easy to add a
> > > Fixes tag to it. Anyway, I will encourage stable tree maintainer to take it
> > > as it does fix a problem as shown in your test.
> > I have no idea what you want me to do here.  Please be explicit...
> > 
> I would like the stable trees to include commit 1ee326196c66
> ("locking/rwsem: Always try to wake waiters in out_nolock path") after it is
> merged into the mainline in the v5.19 merge window. It should be applied to
> the stable trees that have incorporated the backport of commit d257cc8cb8d5
> ("locking/rwsem: Make handoff bit handling more consistent") since this
> commit seems to make the missed wakeup problem easier to show up.

Please let us know when this is merged into Linus's tree.  Nothing we
can do until then and I'm not going to remember this in a few months
anyway.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v5] locking/rwsem: Make handoff bit handling more consistent
  2022-04-14 15:42                   ` Greg KH
@ 2022-04-14 15:44                     ` Waiman Long
  0 siblings, 0 replies; 5+ messages in thread
From: Waiman Long @ 2022-04-14 15:44 UTC (permalink / raw)
  To: Greg KH
  Cc: john.p.donnelly, chenguanyou, dave, hdanton, linux-kernel,
	mazhenhua, mingo, peterz, quic_aiquny, will, sashal, stable

On 4/14/22 11:42, Greg KH wrote:
> On Thu, Apr 14, 2022 at 11:18:23AM -0400, Waiman Long wrote:
>> On 4/14/22 06:48, Greg KH wrote:
>>> On Tue, Apr 12, 2022 at 01:04:05PM -0400, Waiman Long wrote:
>>>> The patch has already been in the tip tree. It may not be easy to add a
>>>> Fixes tag to it. Anyway, I will encourage stable tree maintainer to take it
>>>> as it does fix a problem as shown in your test.
>>> I have no idea what you want me to do here.  Please be explicit...
>>>
>> I would like the stable trees to include commit 1ee326196c66
>> ("locking/rwsem: Always try to wake waiters in out_nolock path") after it is
>> merged into the mainline in the v5.19 merge window. It should be applied to
>> the stable trees that have incorporated the backport of commit d257cc8cb8d5
>> ("locking/rwsem: Make handoff bit handling more consistent") since this
>> commit seems to make the missed wakeup problem easier to show up.
> Please let us know when this is merged into Linus's tree.  Nothing we
> can do until then and I'm not going to remember this in a few months
> anyway.

Sure, I will remind you again after the merge happens.

Cheers,
Longman


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-14 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20211116012912.723980-1-longman@redhat.com>
     [not found] ` <20220214154741.12399-1-chenguanyou@xiaomi.com>
     [not found]   ` <3f02975c-1a9d-be20-32cf-f1d8e3dfafcc@oracle.com>
     [not found]     ` <e873727e-22db-3330-015d-bd6581a2937a@redhat.com>
     [not found]       ` <31178c33-e25c-c3e8-35e2-776b5211200c@oracle.com>
     [not found]         ` <161c2e25-3d26-4dd7-d378-d1741f7bcca8@redhat.com>
     [not found]           ` <2b6ed542-b3e0-1a87-33ac-d52fc0e0339c@oracle.com>
2022-04-12 17:04             ` [PATCH v5] locking/rwsem: Make handoff bit handling more consistent Waiman Long
2022-04-14 10:48               ` Greg KH
2022-04-14 15:18                 ` Waiman Long
2022-04-14 15:42                   ` Greg KH
2022-04-14 15:44                     ` Waiman Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).