diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index f4c5be67826e..c86c4387f52b 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -1072,6 +1072,9 @@ void xfs_buf_item_done( struct xfs_buf *bp) { + if (atomic_read(&bp->b_log_item->bli_refcount) != 0) + return; + /* * If we are forcibly shutting down, this may well be off the AIL * already. That's because we simulate the log-committed callbacks to