]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ocfs2/super.c
push BKL down into ->put_super
[net-next-2.6.git] / fs / ocfs2 / super.c
index 3eb076ce4c073e303771a858002a4c2c6b04ddbf..02737596b597d7ff96a07a733d7672882476b304 100644 (file)
@@ -1536,9 +1536,13 @@ static void ocfs2_put_super(struct super_block *sb)
 {
        mlog_entry("(0x%p)\n", sb);
 
+       lock_kernel();
+
        ocfs2_sync_blockdev(sb);
        ocfs2_dismount_volume(sb, 0);
 
+       unlock_kernel();
+
        mlog_exit_void();
 }