All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [RFC] ocfs2: a method to prevent lock on the blocked queue is starved.
@ 2015-08-27 12:11 jiangyiwen
  2015-09-25  1:53 ` Joseph Qi
  0 siblings, 1 reply; 2+ messages in thread
From: jiangyiwen @ 2015-08-27 12:11 UTC (permalink / raw)
  To: ocfs2-devel

In dlm_shuffle_lists, if there are conversions still blocked on the
converting queue all the time, the blocked locks on the blocked queue
can never be processed, so the locks on the blocked queue will be
starved.

So I have an idea to solve this problem: To switch the priority between
the converting queue and blocked queue, i.e. process the locks on the
blocked queue first. In this way, the lock on the blocked queue will
be processed and it will not enter the blocked queue until the
lockres is purged. so the scenario above will be solved.

Anyone has better ideas or advices?

Thanks,
Yiwen Jiang

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

* [Ocfs2-devel] [RFC] ocfs2: a method to prevent lock on the blocked queue is starved.
  2015-08-27 12:11 [Ocfs2-devel] [RFC] ocfs2: a method to prevent lock on the blocked queue is starved jiangyiwen
@ 2015-09-25  1:53 ` Joseph Qi
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Qi @ 2015-09-25  1:53 UTC (permalink / raw)
  To: ocfs2-devel

Simply switch converting list and blocked list cannot resolve the
starvation case fundamentally.
Maybe we have to set a deadline and bring in a scheduler strategy.
@Junxiao, do you have any other idea?

On 2015/8/27 20:11, jiangyiwen wrote:
> In dlm_shuffle_lists, if there are conversions still blocked on the
> converting queue all the time, the blocked locks on the blocked queue
> can never be processed, so the locks on the blocked queue will be
> starved.
> 
> So I have an idea to solve this problem: To switch the priority between
> the converting queue and blocked queue, i.e. process the locks on the
> blocked queue first. In this way, the lock on the blocked queue will
> be processed and it will not enter the blocked queue until the
> lockres is purged. so the scenario above will be solved.
> 
> Anyone has better ideas or advices?
> 
> Thanks,
> Yiwen Jiang
> 
> 
> .
> 

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

end of thread, other threads:[~2015-09-25  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 12:11 [Ocfs2-devel] [RFC] ocfs2: a method to prevent lock on the blocked queue is starved jiangyiwen
2015-09-25  1:53 ` Joseph Qi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.