]> git.michaelhowe.org Git - packages/o/openafs.git/commit
LINUX vcache lock ordering in afs_linux_readdir
authorMatt Benjamin <matt@linuxbox.com>
Wed, 24 Aug 2011 20:23:37 +0000 (16:23 -0400)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 11:03:31 +0000 (03:03 -0800)
commit2e0c077c8faebc261e73cb03a1e37007c161bf0e
treec73f82d3a7940ad9378ac783e80b6652f1dca048
parente7e1d685f579ec5d83ac713835d173b99b9b072f
LINUX  vcache lock ordering in afs_linux_readdir

Normalize shared and exclusive lock operations.  Take the lock
exclusive immediately, since the code assumes a write lock if
the vcache state is in flux or the entry is being fetched, releasing
-write- rather than shared, since we do not hold a shared lock.

Reviewed-on: http://gerrit.openafs.org/5309
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit fa97579a08cdf23fcff3c50a5845d72a785feeaf)

Change-Id: I282913fead10791751ebaf3c7c6b33e3fbd9a1f7
Reviewed-on: http://gerrit.openafs.org/6305
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/LINUX/osi_vnodeops.c