gfs2: Fix potential glock use-after-free on unmount
[linux-2.6-block.git] / fs / gfs2 / super.c
index d481db9510ac4da7806113760fab1481acade9bf..32a37daaccbecd06d97e08b319523ff9b32af44f 100644 (file)
@@ -650,10 +650,7 @@ restart:
        gfs2_gl_hash_clear(sdp);
        truncate_inode_pages_final(&sdp->sd_aspace);
        gfs2_delete_debugfs_file(sdp);
-       /*  Unmount the locking protocol  */
-       gfs2_lm_unmount(sdp);
 
-       /*  At this point, we're through participating in the lockspace  */
        gfs2_sys_fs_del(sdp);
        free_sbd(sdp);
 }