dlm: improve how bast mode handling
authorDavid Teigland <teigland@redhat.com>
Tue, 9 Dec 2008 17:55:46 +0000 (11:55 -0600)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Dec 2008 16:16:46 +0000 (10:16 -0600)
commitfd22a51bcc0b7b76fc729b02316214fd979f9fe1
treee23326bb9df7cf0ee76b3b6b61c82364ff0aed78
parent03339696314fffb95dafb349b84243358e945ce6
dlm: improve how bast mode handling

The lkb bastmode value is set in the context of processing the
lock, and read by the dlm_astd thread.  Because it's accessed
in these two separate contexts, the writing/reading ought to
be done under a lock.  This is simple to do by setting it and
reading it when the lkb is added to and removed from dlm_astd's
callback list which is properly locked.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/ast.c
fs/dlm/ast.h
fs/dlm/lock.c
fs/dlm/user.c
fs/dlm/user.h