]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit50a10043fd4c12c008bc607d30a72b59d2f2dee9
treeb045e42d2db93043dd2e667a21990c7b56cb4f18
parent8b88bcabca1e10d4e7e42f9ad7cefc2aed56d8b1
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