From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965500AbbHKRF7 (ORCPT ); Tue, 11 Aug 2015 13:05:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42111 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754896AbbHKRF6 (ORCPT ); Tue, 11 Aug 2015 13:05:58 -0400 Date: Tue, 11 Aug 2015 19:03:43 +0200 From: Oleg Nesterov To: Al Viro , Dave Chinner , Dave Hansen , Jan Kara Cc: "Paul E. McKenney" , Peter Zijlstra , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/8] change sb_writers to use percpu_rw_semaphore Message-ID: <20150811170343.GA26881@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jan, please consider this series. I didn't dare to preserve your acks, I hope you can ack v2 too. The only essential change is that I dropped the lockdep improvements as we discussed. This means that 8/8 was changed a bit, and I decided to add the new documentation patch, see 3/8. 6/8 is new too, I forgot to do this in V1. To remind, I tested this with the following script: dd if=/dev/zero of=TEST.img bs=1MiB count=4000 dd if=/dev/zero of=SCRATCH.img bs=1MiB count=4000 losetup --find --show TEST.img losetup --find --show SCRATCH.img mkfs.xfs -f /dev/loop0 mkfs.xfs -f /dev/loop1 mkdir -p TEST SCRATCH mount /dev/loop0 TEST mount /dev/loop1 SCRATCH TEST_DEV=/dev/loop0 TEST_DIR=TEST SCRATCH_DEV=/dev/loop1 SCRATCH_MNT=SCRATCH \ ./check `grep -il freeze tests/*/???` seems to work: Ran: generic/068 generic/085 generic/280 generic/311 xfs/011 xfs/119 xfs/297 Passed all 7 tests and I see nothing interesting in dmesg. If I replace mkfs.xfs above with mkfs.btrfs or mkfs.ext4 everything looks fine too: FSTYP -- btrfs PLATFORM -- Linux/x86_64 intel-canoepass-10 4.2.0-rc6+ MKFS_OPTIONS -- /dev/loop1 MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /dev/loop1 SCRATCH generic/068 60s ... 53s generic/085 24s ... 16s generic/280 2s ... [not run] disk quotas not supported by this filesystem type: btrfs generic/311 165s ... 136s xfs/011 20s ... [not run] not suitable for this filesystem type: btrfs xfs/119 22s ... [not run] not suitable for this filesystem type: btrfs xfs/297 270s ... [not run] not suitable for this filesystem type: btrfs Ran: generic/068 generic/085 generic/311 Not run: generic/280 xfs/011 xfs/119 xfs/297 Passed all 3 tests and FSTYP -- ext4 PLATFORM -- Linux/x86_64 intel-canoepass-10 4.2.0-rc6+ MKFS_OPTIONS -- /dev/loop1 MOUNT_OPTIONS -- -o acl,user_xattr -o context=system_u:object_r:nfs_t:s0 /dev/loop1 SCRATCH generic/068 53s ... 52s generic/085 16s ... 8s generic/280 2s ... 4s generic/311 136s ... 173s xfs/011 20s ... [not run] not suitable for this filesystem type: ext4 xfs/119 22s ... [not run] not suitable for this filesystem type: ext4 xfs/297 270s ... [not run] not suitable for this filesystem type: ext4 Ran: generic/068 generic/085 generic/280 generic/311 Not run: xfs/011 xfs/119 xfs/297 Passed all 4 tests Oleg. arch/Kconfig | 1 - fs/btrfs/transaction.c | 8 +-- fs/super.c | 167 ++++++++++++++++++----------------------- fs/xfs/xfs_aops.c | 6 +- include/linux/fs.h | 23 +++--- include/linux/percpu-rwsem.h | 20 +++++ init/Kconfig | 1 - kernel/locking/Makefile | 3 +- kernel/locking/percpu-rwsem.c | 13 +++ lib/Kconfig | 3 - 10 files changed, 122 insertions(+), 123 deletions(-)