diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index 306165e61438..b319a4f542d8 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1855,6 +1855,8 @@ static void lbmLogShutdown(struct jfs_log * log) jfs_info("lbmLogShutdown: log:0x%p", log); + LOG_LOCK(log); + lbuf = log->lbuf_free; while (lbuf) { struct lbuf *next = lbuf->l_freelist; @@ -1862,6 +1864,8 @@ static void lbmLogShutdown(struct jfs_log * log) kfree(lbuf); lbuf = next; } + + LOG_UNLOCK(log); }