dlm: send reply before bast
authorDavid Teigland <teigland@redhat.com>
Wed, 24 Feb 2010 17:59:23 +0000 (11:59 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:21 +0000 (13:20 -0700)
commit8b52a196f50ca16eb07abea00443ff74884d11f0
tree6a05042fd22539cd63e179cd800c6a830860cce3
parent6ce7a93b30612fd11301dbbafaac8ae01497054d
dlm: send reply before bast

commit cf6620acc0f6fac57968aafef79ab372bdcf6157 upstream.

When the lock master processes a successful operation (request,
convert, cancel, or unlock), it will process the effects of the
change before sending the reply for the operation.  The "effects"
of the operation are:

- blocking callbacks (basts) for any newly granted locks
- waiting or converting locks that can now be granted

The cast is queued on the local node when the reply from the lock
master is received.  This means that a lock holder can receive a
bast for a lock mode that is doesn't yet know has been granted.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/dlm/lock.c