]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: send reply before bast
authorDavid Teigland <teigland@redhat.com>
Wed, 24 Feb 2010 17:59:23 +0000 (11:59 -0600)
committerDavid Teigland <teigland@redhat.com>
Fri, 26 Feb 2010 17:57:37 +0000 (11:57 -0600)
commit6fca08226e174ec627fc14d9da7e9443e4cac076
treefae381f0ffc0f13124f6138de9843140fc816cb3
parentec0ee6402684e71dd2f78c5671dbb4ca3ad3641a
dlm: send reply before bast

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>
fs/dlm/lock.c