From a5f67cd1f214fda19f34e641bdfa79462d6a1024 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 2 Aug 2016 16:31:00 +0000 Subject: [PATCH] scst_dlm: Instantiate lockspace as soon as cluster mode is enabled git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6920 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_dlm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scst/src/scst_dlm.c b/scst/src/scst_dlm.c index 65fe76c9f..cc1f7908e 100644 --- a/scst/src/scst_dlm.c +++ b/scst/src/scst_dlm.c @@ -1427,6 +1427,13 @@ static int scst_pr_dlm_init(struct scst_device *dev, const char *cl_dev_id) goto err_free; } + /* + * Instantiate the lockspace such that APTPL registration information + * is also made persistent on this node even if this node does not + * receive any medium or PR SCSI commands. + */ + get_lockspace(dev); + res = 0; out: