Skip to content

xfstests: add deadlock between the AGI and AGF with RENAME_WHITEOUT test

kaixuxia fstests linux-xfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Fix the xattr_count value of the original devnode in RENAME_WHITEOUT.
- Fix the parent ids swap problem in RENAME_EXCHANGE.
- Add the necessary comments.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fsstress: show the real file id and parid in rename_f()ltp/fsstress.c+7 -40 replies
2/4fsstress: add NOREPLACE and WHITEOUT renameat2 supportltp/fsstress.c+90 -151 reply
3/4fsstress: add EXCHANGE renameat2 supportltp/fsstress.c+71 -214 replies
4/4xfs: test the deadlock between the AGI and AGF with RENAME_WHITEOUTtests/generic/579 tests/generic/579.out tests/generic/group+59 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchBrian Foster
1/4R-b
2/4R-b
3/4
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] xfstests: add deadlock between the AGI and AGF with RENAME_WHITEOUT test

Hi all,

There is ABBA deadlock bug between the AGI and AGF when performing rename() with RENAME_WHITEOUT flag, so add test to check that whether the rename() call works well. We add the renameat2 syscall support to fsstress, and then reproduce the deadlock problem by using fsstress.

Changes for v2:
- Fix the xattr_count value of the original devnode in RENAME_WHITEOUT.
- Fix the parent ids swap problem in RENAME_EXCHANGE.
- Add the necessary comments.

kaixuxia (4):
fsstress: show the real file id and parid in rename_f()
fsstress: add NOREPLACE and WHITEOUT renameat2 support
fsstress: add EXCHANGE renameat2 support
xfs: test the deadlock between the AGI and AGF with RENAME_WHITEOUT

 ltp/fsstress.c        | 206 ++++++++++++++++++++++++++++++++++++++++----------
 tests/generic/579     |  56 ++++++++++++++
 tests/generic/579.out |   2 +
 tests/generic/group   |   1 +
 4 files changed, 226 insertions(+), 39 deletions(-)
 create mode 100755 tests/generic/579
 create mode 100644 tests/generic/579.out
Signature · 1 line
1.8.3.1