]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: kg_sem semaphore handling is incorrectly
authorJames Simmons <jsimmons@infradead.org>
Wed, 23 Dec 2015 21:24:40 +0000 (16:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:20:14 +0000 (14:20 -0800)
commit2e90fa6dd0403d2bfbb337289169d8b324424770
treeb045e42d2db93043dd2e667a21990c7b56cb4f18
parent9d2a6a537226e056564541a6a3bdc88dca9ceab2
staging: lustre: kg_sem semaphore handling is incorrectly

During the removal of the cfs wrappers the kg_sem semaphore
was handled incorrectly. We need to take a write lock when
writing data to the kkuc_groups. The libcfs_kkuc_group_foreach
needs to only take a read lock. This makes use match the
OpenSFS development branch.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c