[sheepdog] [PATCH v2 2/4] work: protect nr_threads by wi->startup_lock

Liu Yuan namei.unix at gmail.com
Wed Dec 18 04:41:39 CET 2013


On Tue, Dec 17, 2013 at 11:42:54PM +0900, Hitoshi Mitake wrote:
> Previous protection scheme of wi->nr_thread in work.c was
> unclear. This patch let work.c protect wi->nr_thread by
> wi->startup_lock.
> 

I don't understand what you meant by 'unclear'. Could make it clear that
what exactly you think is 'unclear'.

By name startup_lock means to protect something at startup, so we can't abuse
it. If we really want to duplex it, we need to give it a new name first.

Thanks
Yuan



More information about the sheepdog mailing list