OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_72-138-gc9a4e11
Gerrit Code Review
gerrit@openafs.org
Tue, 16 Mar 2010 17:54:48 -0700 (PDT)
The following commit has been merged in the master branch:
commit c9a4e11bbac143f7e44af4eb1e6fae1653679e33
Author: Ben Kaduk <kaduk@mit.edu>
Date: Thu Mar 11 00:13:12 2010 -0500
Allocate and free backing store for event mutices
Actually get memory for the event mutex. With this and a locking
tweak, afsd actually starts (with memcache; the UFS cache still
has some locking issues).
Note that struct mtx is small enough that we may want to just
include it inline in afs_event_t and avoid having to do a separate
allocation/free step. However, Derrick wants to merge the FBSD and
DARWIN versions of this file, so stick with the more compatible
version for now.
I find that without the memset(), mtx_init() will (sometimes?) complain
that the mutex is already initialized. The glock should ensure
serialization here, though, so that we only allocate and initialize
one mutex per event.
Also remove an unnecessary cast while here.
Change-Id: Ib304f4301a478a82f0fb8c9ae3bfee98a2a28acd
Reviewed-on: http://gerrit.openafs.org/1560
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/FBSD/osi_sleep.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
--
OpenAFS Master Repository