]> git.baikalelectronics.ru Git - kernel.git/commit
[DLM] Fix kref_put oops
authorPatrick Caulfield <pcaulfie@redhat.com>
Thu, 2 Nov 2006 14:41:23 +0000 (14:41 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 6 Nov 2006 14:01:07 +0000 (09:01 -0500)
commite8f972664497968d6351db5cf0c57099364831fe
tree22ab000c6d5aca9d0c34ef68b8901048628672ed
parentb8687c6c33183cef68c18235aceffbc21e2dadc2
[DLM] Fix kref_put oops

This patch fixes the recounting on the lockspace kobject. Previously the lockspace was freed while userspace could have had a
reference to one of its sysfs files, causing an oops in kref_put.

Now the lockspace kfree is moved into the kobject release() function

Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/lockspace.c