Red Hat Bugzilla – Bug 675270
GFS2: Fails to clear glocks during unmount
Last modified: 2011-05-23 16:39:14 EDT
Description of problem: While testing quotacheck, I found that gfs2 reported the following messages on the console during unmount/rmmod. I was updating a bunch of quotas and immediately unmounting the fs and attempting to remove the module. G: s:EX n:8/23b2 f:lDpIq t:UN d:UN/2000 a:0 r:2 G: s:EX n:8/21e5 f:lDprIq t:UN d:UN/6000 a:0 r:3 G: s:SH n:8/2b f:lDpIq t:UN d:UN/11000 a:0 r:2 G: s:EX n:8/1cfc f:lDprIq t:UN d:UN/15000 a:0 r:3 G: s:UN n:8/5da f:Iq t:UN d:EX/0 a:0 r:0 slab error in kmem_cache_destroy(): cache `gfs2_glock(aspace)': Can't free all objects Pid: 4832, comm: rmmod Not tainted 2.6.32 #1 Call Trace: [<ffffffff811537cb>] kmem_cache_destroy+0xbb/0xf0 [<ffffffffa0a60946>] exit_gfs2_fs+0x84/0x97 [gfs2] [<ffffffff810a4824>] sys_delete_module+0x194/0x260 [<ffffffff8100b172>] system_call_fastpath+0x16/0x1b slab error in kmem_cache_destroy(): cache `gfs2_glock': Can't free all objects Pid: 4832, comm: rmmod Not tainted 2.6.32 #1 Call Trace: [<ffffffff811537cb>] kmem_cache_destroy+0xbb/0xf0 [<ffffffffa0a60952>] exit_gfs2_fs+0x90/0x97 [gfs2] [<ffffffff810a4824>] sys_delete_module+0x194/0x260 [<ffffffff8100b172>] system_call_fastpath+0x16/0x1b
Created attachment 477088 [details] Patch to fix the issue This was an omission from the vfs scale patch which needs to be fixed as soon as possible.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Verified that with the patch in comment#2, I no longer see the glock/slab messages mentioned above. Posting to rhkernel-list for inclusion in rhel6.1
Patch(es) available on kernel-2.6.32-117.el6
This has not showed up in recent regression runs with kernel-2.6.32-128.el6.
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 therefore 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/RHSA-2011-0542.html