From: Steven Whitehouse Date: Thu, 22 Mar 2007 11:24:57 +0000 Subject: [Cluster-devel] [PATCH] dlm: Don't delete misc device if lockspace removal fails In-Reply-To: <4600F9A9.4050903@redhat.com> References: <4600F9A9.4050903@redhat.com> Message-ID: <1174562697.32601.174.camel@quoit.chygwyn.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Now in the GFS2 -nmw git tree. Thanks, Steve. On Wed, 2007-03-21 at 09:23 +0000, Patrick Caulfield wrote: > Currently if the lockspace removal fails the misc device associated with a > lockspace is left deleted. After that there is no way to access the orphaned > lockspace from userland. > > This patch recreates the misc device if th dlm_release_lockspace fails. I > believe this is better than attempting to remove the lockspace first because > that leaves an unattached device lying around. The potential gap in which there > is no access to the lockspace between removing the misc device and recreating it > is acceptable ... after all the application is trying to remove it, and only new > users of the lockspace will be affected. > > Signed-Off-By: Patrick Caulfield