Re: [sheepdog] [PATCH v4 2/3] work: make locking by queue_work() more fine grain

2013-12-17 Thread Hitoshi Mitake
At Wed, 18 Dec 2013 14:25:48 +0800, Liu Yuan wrote: > > On Wed, Dec 18, 2013 at 03:04:22PM +0900, Hitoshi Mitake wrote: > > wi->nr_threads is protected by wi->startup_lock now, we can make the > > critical section in queue_work() smaller. > > > > Signed-off-by: Hitoshi Mitake > > --- > > lib/wo

Re: [sheepdog] [PATCH v4 2/3] work: make locking by queue_work() more fine grain

2013-12-17 Thread Liu Yuan
On Wed, Dec 18, 2013 at 03:04:22PM +0900, Hitoshi Mitake wrote: > wi->nr_threads is protected by wi->startup_lock now, we can make the > critical section in queue_work() smaller. > > Signed-off-by: Hitoshi Mitake > --- > lib/work.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

[sheepdog] [PATCH v4 2/3] work: make locking by queue_work() more fine grain

2013-12-17 Thread Hitoshi Mitake
wi->nr_threads is protected by wi->startup_lock now, we can make the critical section in queue_work() smaller. Signed-off-by: Hitoshi Mitake --- lib/work.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/work.c b/lib/work.c index 9d5c5a9..c3b568b 100644 --- a/lib/work.