From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050504 Fedora/1.0.3-4 Firefox/1.0.3 Description of problem: If an application opens an already existing lockspace, the DLM ref count is still incremented. This means that when all lockspaces are removed the DLM does not tidy up. Any attempt to rmmod the dlm module results in a kernel panic. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. start clvmd 2. killall -9 clvmd (this leaves the lockspace in place) 3. clvmd 4. killall clvmd (this closes the lockspace) 5. rmmod dlm Actual Results: "grep dlm /proc/slabinfo" shows the DLM slabs still in place, "ps -ef|grep dlm" shows the DLM processes still running. modprobe dlm will panic the kernel as it tries to recreate the slab. Expected Results: Something much less spectacular! Deleting the last lockspace should cause the DLM to tidy up. Additional info: This patch fixes: --- lockspace.c 26 Mar 2005 04:43:51 -0000 1.19.2.6 +++ lockspace.c 10 May 2005 09:55:50 -0000 @@ -415,12 +415,18 @@ int dlm_new_lockspace(char *name, int na down(&dlmstate_lock); error = init_internal(); - if (error) + if (error) { + up(&dlmstate_lock); goto out; + } error = new_lockspace(name, namelen, lockspace, flags); - out: up(&dlmstate_lock); + + if (error) + dlm_release(); + out: + return error; }
*** Bug 143449 has been marked as a duplicate of this bug. ***
Fixed on RHEL4 branch so should turn up in U2
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-735.html