Windows: split cm_buf_t.flags field to ensure proper locking
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 16 Apr 2010 03:58:21 +0000 (23:58 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 17 Apr 2010 03:04:58 +0000 (20:04 -0700)
commit349f533351a8a13a7fa2a14edd9139714064c82d
tree19fa5c3848c8051ac44631f55601747e63cd9edf
parentf02d34315ed260e716c49ca9adeaa2635e334e60
Windows: split cm_buf_t.flags field to ensure proper locking

It turns out that for all these years the locks protecting
the cm_buf_t flags field have been racy.  Some of the flags
were protected by the cm_buf_t mutex and others by the
buf_globalLock.  This patchset splits the flags field so that
the appropriate lock will be used exclusively to protect a
common set of flags.

LICENSE MIT

Change-Id: I85c98c85244c987df30a811d405f7d897e407ba2
Reviewed-on: http://gerrit.openafs.org/1759
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_buf.h
src/WINNT/afsd/cm_scache.c