[Ocfs2-devel] [PATCH] Wake up down-convert thread when clearing OCFS2_LOCK_UPCONVERT_FINISHING from ocfs2_lock_res.l_flags

Wengang Wang wen.gang.wang at oracle.com
Wed Sep 14 18:49:26 PDT 2011


On 11-09-14 18:41, Sunil Mushran wrote:
> Instead of passing osb, just wakeup_dc from the 5 locations.
> Cleaner that-a-way.

Yes, that's cool. I will post shortly.

thanks,
wengang.

> 
> On 09/13/2011 02:13 AM, Wengang Wang wrote:
> >In down convert thread, when the ocfs2_lock_res is in OCFS2_LOCK_UPCONVERT_FINISHING
> >state, it is requeued for next run of ocfs2_downconvert_thread_do_work(). If not
> >waked up, the DC thread just sleep there without even there are ocfs2_lock_res' left
> >in the list.
> >
> >So when clearing the OCFS2_LOCK_UPCONVERT_FINISHING flag, we need also to wake up dc
> >thread accordingly.
> >



More information about the Ocfs2-devel mailing list