]> git.michaelhowe.org Git - packages/o/openafs.git/commit
volmonitor keep vtrans lock
authorDan Hyde <drh@umich.edu>
Wed, 13 Jan 2010 19:38:47 +0000 (14:38 -0500)
committerRuss Allbery <rra@debian.org>
Fri, 26 Mar 2010 19:27:45 +0000 (12:27 -0700)
commit76ac9aa20f3ab8a1cbbb83ad76914f0bd0618ef7
tree8abf9ce55e17561f0f108ca191c265bfc2bbc1c1
parentfab17139e28fc8f80c1c08dd1bbc8cd07c6a74ee
volmonitor keep vtrans lock

VolMonitor must maintain the VTRANS lock the whole time it is walking
the allTrans list.  Failure to do so can cause core dumps trying to
access memory that has already been free'd.

Two versions of this change were coded and tested.  The other version
used the VTRANS lock only around a THOLD, but needed a TRELE, too.
Timing tests were run counting the number of vos status, vos listvol,
and vos backupsys operations that could be performed during a fixed
number of vos status operations.  The THOLD/TRELE version caused other
vos operations to run about 5% slower.

FIXES 126110

Change-Id: I7e749d30c955867faacafa978d7d643dee648ca3
Reviewed-on: http://gerrit.openafs.org/1098
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit d4f6ece19b05f2233e53f2d3c59f92316ec5ec3a)
Change-Id: Ic12bb6687a9c34e85abc2023c02264de6ae27614
Reviewed-on: http://gerrit.openafs.org/1588
Reviewed-by: Dan Hyde <drh@umich.edu>
Tested-by: Dan Hyde <drh@umich.edu>
(cherry picked from commit 190ef2cb29577f2fcf1853149cf210fdf0736ae3)
src/volser/volprocs.c