Skip to content

xfs: fix bugs uncovered by dbench testing

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: unlock items before allowing the CIL to commitfs/xfs/xfs_log_cil.c fs/xfs/xfs_trans.c fs/xfs/xfs_trans_priv.h+17 -51 reply
2/2xfs: ensure we mark all inodes in a freed cluster XFS_ISTALEfs/xfs/xfs_inode.c+48 -402 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] xfs: fix bugs uncovered by dbench testing

The reproducer Nick found that hung the XFS filesystem has two different causes. Both manifest in the same way, so it was difficult to tell them aparṫ - they left an item that could notbe flushed stuck in the AIL and hence preventing the tail of the log from being moved forward.

The most frequently tripped problem (generally within 5 minutes) was the CIL commit race when the checkpoitn could commit before the transaction items were unlocked, resulting in stale information in log items and incorrect processing of stale buffers. I coul dnot reproduce this race condition with a debug kernel, which explain why my previous dbench testing did not uncover it.

Less frequently tripped was the inode cluster freeing problem - it would take around 2 hours on average to trip this one, and it does not require delayed logging to hit.

Nick, you'll need both patches to avoid the the hangs you reported - I've had your test case running now for just over ten hours without any issues so far.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs