Do not call afs_FlushVCBs with afs_xvcache held
authorRainer Toebbicke <rtb@pclella.cern.ch>
Wed, 23 Jun 2010 11:08:47 +0000 (13:08 +0200)
committerDerrick Brashear <shadow@dementia.org>
Fri, 2 Jul 2010 16:36:13 +0000 (09:36 -0700)
commita309e274632993c5aeec04c6e090f5ac95837a40
tree0cbfbf469d1e79ccf537d572a39a08e4b6c26dbe
parentbdf6192509ca79baacda8ddf79112647bd3c0791
Do not call afs_FlushVCBs with afs_xvcache held

In afs_AllocCBR, use dynamically created afs_cbr structures
when running out of preformatted ones, rather than calling
afs_FlushVCBs under, potentially, the afs_xvcache lock
(which would be held across the RPC, difficult to drop and
re-acquire under the current hierarchy).

Modest modernization of the number preformatted afs_cbr structures,
rule-of-thumb, not pretending any research.

Change-Id: I9427427d5dab7d4639822c370bdded0418f67d9e
Reviewed-on: http://gerrit.openafs.org/2243
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs.h
src/afs/afs_call.c
src/afs/afs_vcache.c