]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ocfs2/cluster: move locking into attribute store methods
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Oct 2015 13:32:57 +0000 (15:32 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Oct 2015 05:17:53 +0000 (22:17 -0700)
commit13a83fc9096dfaf2a7f4671b5777780bbe1d4a30
tree2874119928c790fb2c1706a12cbc9ff305aa9644
parentea9ed9cff47e7932925982c8fdaf2d4d1708884f
ocfs2/cluster: move locking into attribute store methods

The test and separate set bit scheme was racy to start with, so move to do
a test_and_set_bit after doing the earlier error checks inside the actual
store methods.  Also remove the locking for the local attribute which
already has a different scheme to synchronize.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
fs/ocfs2/cluster/nodemanager.c