]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: lustre: ldlm: fix race of starting bl threads
authorNiu Yawei <yawei.niu@intel.com>
Sat, 18 Feb 2017 21:47:12 +0000 (16:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:00 +0000 (09:17 +0100)
commit9672a610adfdadf6fe30dc34865e3add5d368aa4
tree9f5085433e047413efc8353709e16b6e1f25843b
parent0cd491a9020d04790f9b4f111e4c223aaceade0a
staging: lustre: ldlm: fix race of starting bl threads

There is race in the code of starting bl threads which leads to
thread number exceeds the maximum number when race happened, it
can also lead to duplicated thread name. This patch fixes the
race and cleanup the code a bit.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7330
Reviewed-on: http://review.whamcloud.com/17026
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c