From patchwork Thu Nov 16 17:35:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13458144 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C5A9364D8 for ; Thu, 16 Nov 2023 17:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ItxO6und" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 156DFC433C7; Thu, 16 Nov 2023 17:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700156102; bh=qrWaayJJGVCZai72tHGWQJTr5bstQaiqIh3l3MjRD3M=; h=Date:Subject:From:To:Cc:From; b=ItxO6undMFjZiYpx8Ln2praY0Jk4O3Sue9t6dyi7y+T694VCJO5iIvS+0deFnr8+d Guhyp8Uzop+vbMrIrOCxrWvISmjZc7eoe3FSi8Rl7vbjpNUq6IYQzeFVbH0/kfZRS6 Qvv6t/j/ukeMXyQUWjbelRHKl1XBHp9u0w7A0Vq4tBxKGUNNEE9njBlLXVkZDf918f 4/c9nc0PpYYzv619BRXcs9nCiYj5EWeFfDRUVgtdfcYqUz5dUHEX2hRPo+KRWLNuJF sNBbXmpkTmm6ZLKB9arQtS1NSv9XkTc7vvwQilKajEww5EYbVRwnB1NGoEbjBHfsOc GkTArtHYrTJKA== Date: Thu, 16 Nov 2023 09:35:00 -0800 Subject: [GIT PULL 1/3] fstests: reload entire iunlink lists From: "Darrick J. Wong" To: djwong@kernel.org, zlang@redhat.com Cc: david@fromorbit.com, fstests@vger.kernel.org, guan@eryu.me, hch@lst.de, linux-xfs@vger.kernel.org Message-ID: <170015608586.3373797.8830890617259854780.stg-ugh@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Zorro, Please pull this branch with changes for fstests. As usual, I did a test-merge with the main upstream branch as of a few minutes ago, and didn't see any conflicts. Please let me know if you encounter any problems. --D The following changes since commit 11914614784735c504f43b5b6baabaa713375984: fstests: generic/353 should accomodate other pwrite behaviors (2023-10-27 20:19:19 +0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git tags/fix-iunlink-list_2023-11-16 for you to fetch changes up to 22ee90ae2da798d7462579aeb4b17d8b44671e9d: xfs: test unlinked inode list repair on demand (2023-11-16 09:11:57 -0800) ---------------------------------------------------------------- fstests: reload entire iunlink lists [v5] This is the second part of correcting XFS to reload the incore unlinked inode list from the ondisk contents. Whereas part one tackled failures from regular filesystem calls, this part takes on the problem of needing to reload the entire incore unlinked inode list on account of somebody loading an inode that's in the /middle/ of an unlinked list. This happens during quotacheck, bulkstat, or even opening a file by handle. In this case we don't know the length of the list that we're reloading, so we don't want to create a new unbounded memory load while holding resources locked. Instead, we'll target UNTRUSTED iget calls to reload the entire bucket. Note that this changes the definition of the incore unlinked inode list slightly -- i_prev_unlinked == 0 now means "not on the incore list". v2: rebase to for-next, resend without changes v3: add necessary prerequisites v4: fix accidental commit to wrong patch v5: add more review tags This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong ---------------------------------------------------------------- Darrick J. Wong (2): common: make helpers for ttyprintk usage xfs: test unlinked inode list repair on demand common/fuzzy | 4 +- common/rc | 36 ++++++++- tests/xfs/1872 | 111 +++++++++++++++++++++++++++ tests/xfs/1872.out | 5 ++ tests/xfs/1873 | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1873.out | 6 ++ tests/xfs/329 | 4 +- tests/xfs/434 | 2 +- tests/xfs/435 | 2 +- tests/xfs/436 | 2 +- tests/xfs/444 | 2 +- tests/xfs/516 | 2 +- 12 files changed, 381 insertions(+), 10 deletions(-) create mode 100755 tests/xfs/1872 create mode 100644 tests/xfs/1872.out create mode 100755 tests/xfs/1873 create mode 100644 tests/xfs/1873.out From patchwork Thu Nov 16 17:35:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13458145 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E34CE2F858 for ; Thu, 16 Nov 2023 17:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LlFf1hPZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADE24C433C8; Thu, 16 Nov 2023 17:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700156117; bh=DY9ChXBzWdhYjolB0FQNnJHQMMzI4pc1fhrdy1CsUb0=; h=Date:Subject:From:To:Cc:From; b=LlFf1hPZQSbqaqv7EV44i9na89NcgXrmUzAXo+Byp2EUiQiX9j8Rca+yeQAo+v3X/ +6B1GRYxugbC0ea+JRL7YMiV/0q2OidIf/n/KyWC+HUDt3abbJAQDG/I5+zrII8S/V Q9dsQoWvgA4662+ZsZ8fkO1dxqY3qnTEB/LokV6/uxXYPsArNl/0E8cgCwu9hSFv14 rp7iYWsen/+9O8139bSnWvAV4ZZLTPGn13MeGnQY/XFgzA7RptBzc+zXuJWLlYb3eC hqV9A2tpIFeP9gKttIoEUHYjm8lBYAWP3KiAF0+L1TEGOEqhQYDfKIzyXSuA4WYbsw M9QrwEl71Pbpg== Date: Thu, 16 Nov 2023 09:35:17 -0800 Subject: [GIT PULL 2/3] fstests: updates for Linux 6.7 From: "Darrick J. Wong" To: djwong@kernel.org, zlang@redhat.com Cc: catherine.hoang@oracle.com, fstests@vger.kernel.org, guan@eryu.me, hch@lst.de, linux-xfs@vger.kernel.org Message-ID: <170015608670.3373797.18160156746457381399.stg-ugh@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Zorro, Please pull this branch with changes for fstests. As usual, I did a test-merge with the main upstream branch as of a few minutes ago, and didn't see any conflicts. Please let me know if you encounter any problems. --D The following changes since commit 22ee90ae2da798d7462579aeb4b17d8b44671e9d: xfs: test unlinked inode list repair on demand (2023-11-16 09:11:57 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git tags/xfs-merge-6.7_2023-11-16 for you to fetch changes up to dfaf19dd09b31088d5adfcdd888479301450a8c9: generic: test reads racing with slow reflink operations (2023-11-16 09:11:57 -0800) ---------------------------------------------------------------- fstests: updates for Linux 6.7 [v3] This is pending fixes for things that are going to get merged in 6.7. This time around it's merely a functional test for a locking relaxation in the xfs FICLONE implementation. v2: implement review suggestions v3: add more review tags This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong ---------------------------------------------------------------- Darrick J. Wong (1): generic: test reads racing with slow reflink operations configure.ac | 1 + include/builddefs.in | 1 + m4/package_libcdev.m4 | 13 ++ src/Makefile | 4 + src/t_reflink_read_race.c | 339 ++++++++++++++++++++++++++++++++++++++++++++++ tests/generic/1953 | 75 ++++++++++ tests/generic/1953.out | 6 + 7 files changed, 439 insertions(+) create mode 100644 src/t_reflink_read_race.c create mode 100755 tests/generic/1953 create mode 100644 tests/generic/1953.out From patchwork Thu Nov 16 17:35:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13458146 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5C193C6A3 for ; Thu, 16 Nov 2023 17:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ltEwIhyw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 545FCC433C7; Thu, 16 Nov 2023 17:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700156133; bh=sae3T8fTm7bGIlBN4+hIM9ppP7jdM4GaqK2tKSXoviM=; h=Date:Subject:From:To:Cc:From; b=ltEwIhywT9IZjVvZNGceNz37VZRNMM4F7eoOEZ7dzdbizsMptqTkn12gTphGAHUJL +yajkrmm2YC8nHLixJ7rjjTffiy6CFeYUarH/7qAl5YxVRi0yvw2RoLwbhHqLKh7S6 7seKRo8wPbOXPWsx/k9dqIifB4c3t8jKWvPJvAE6qVOx6IdRqQd6PkNs6VoACvdOVM DtJRwidR4biogIMmAwDWnsVuaTIbpRsMizleRgCGnXYEIN6bd7tM5x8S/kSuIzp/vW v757LGz0uKFUji5ZB5K2Ww0IgywugjKtg9kqhhO7vy4rqNUmGJC+DYHDdkn8yg8Aom 2BsQTJvR5t2Jw== Date: Thu, 16 Nov 2023 09:35:32 -0800 Subject: [GIT PULL 3/3] fstests: FIEXCHANGE is now an XFS ioctl From: "Darrick J. Wong" To: djwong@kernel.org, zlang@redhat.com Cc: fstests@vger.kernel.org, guan@eryu.me, hch@lst.de, linux-xfs@vger.kernel.org Message-ID: <170015608757.3373797.8063458881541595889.stg-ugh@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Zorro, Please pull this branch with changes for fstests. As usual, I did a test-merge with the main upstream branch as of a few minutes ago, and didn't see any conflicts. Please let me know if you encounter any problems. --D The following changes since commit dfaf19dd09b31088d5adfcdd888479301450a8c9: generic: test reads racing with slow reflink operations (2023-11-16 09:11:57 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git tags/private-fiexchange_2023-11-16 for you to fetch changes up to 7053833541bd48b3260f2e6e208fe4d7daab5955: misc: update xfs_io swapext usage (2023-11-16 09:11:57 -0800) ---------------------------------------------------------------- fstests: FIEXCHANGE is now an XFS ioctl [v27.1] Minor amendments to the fstests code now that we've taken FIEXCHANGE private to XFS. v27.1: add hch review tags; rebase and maybe fix merge problems? This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong ---------------------------------------------------------------- Darrick J. Wong (2): misc: privatize the FIEXCHANGE ioctl for now misc: update xfs_io swapext usage common/xfs | 2 +- configure.ac | 2 +- doc/group-names.txt | 2 +- include/builddefs.in | 2 +- ltp/Makefile | 4 ++-- ltp/fsstress.c | 10 +++++----- ltp/fsx.c | 20 ++++++++++---------- m4/package_libcdev.m4 | 20 -------------------- m4/package_xfslibs.m4 | 14 ++++++++++++++ src/Makefile | 4 ++++ src/fiexchange.h | 44 ++++++++++++++++++++++---------------------- src/global.h | 4 +--- src/vfs/Makefile | 4 ++++ tests/generic/709 | 2 +- tests/generic/710 | 2 +- tests/generic/711 | 2 +- tests/generic/712 | 2 +- tests/generic/713 | 4 ++-- tests/generic/714 | 4 ++-- tests/generic/715 | 4 ++-- tests/generic/716 | 2 +- tests/generic/717 | 2 +- tests/generic/718 | 2 +- tests/generic/719 | 2 +- tests/generic/720 | 2 +- tests/generic/722 | 4 ++-- tests/generic/723 | 6 +++--- tests/generic/724 | 6 +++--- tests/generic/725 | 2 +- tests/generic/726 | 2 +- tests/generic/727 | 2 +- tests/xfs/122.out | 1 + tests/xfs/789 | 2 +- tests/xfs/790 | 2 +- tests/xfs/791 | 6 +++--- tests/xfs/792 | 2 +- 36 files changed, 99 insertions(+), 98 deletions(-)