]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: allow multiple lockspace creates
authorDavid Teigland <teigland@redhat.com>
Wed, 6 Aug 2008 18:30:24 +0000 (13:30 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 28 Aug 2008 16:49:15 +0000 (11:49 -0500)
commit9dbd7ec73c91ad60ad041a1a5d1369bce5285006
treeb4ed35afeab36615e50d5c7928a6199780fd2fca
parent9ece4fe1333fe2815dfe267e5091db4bc87e58bb
dlm: allow multiple lockspace creates

Add a count for lockspace create and release so that create can
be called multiple times to use the lockspace from different places.
Also add the new flag DLM_LSFL_NEWEXCL to create a lockspace with
the previous behavior of returning -EEXIST if the lockspace already
exists.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h
fs/dlm/lockspace.c
fs/dlm/user.c
fs/dlm/user.h
fs/gfs2/locking/dlm/mount.c
include/linux/dlm.h
include/linux/dlm_device.h