[sheepdog] [PATCH v4 1/3] work: protect nr_threads by wi->workers_lock

Liu Yuan namei.unix at gmail.com
Wed Dec 18 07:39:19 CET 2013


On Wed, Dec 18, 2013 at 03:04:21PM +0900, Hitoshi Mitake wrote:
> Previous protection scheme of wi->nr_thread in work.c was
> unclear because wi->startup_lock was also used for protecting it
> during workqueue grow/shrink. This patch let work.c protect
> wi->nr_thread by the new wi->workers_lock.

how about merge ->workers_lock and ->pending_lock into a single lock? It looks
neater.

Thanks
Yuan



More information about the sheepdog mailing list