From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: [PATCH 0/4] sb_write: lockdep fixes/cleanups Date: Mon, 20 Jul 2015 19:00:44 +0200 Message-ID: <20150720170044.GA3868@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Al Viro , Dave Chinner , Dave Hansen , Jan Kara Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org So this is the preparation for percpu_rw_semaphore conversion. But let me repeat, imo these changes make sense in any case, so I'd like to send them separately. 2/4 fixes 2 bugs and cleanups the "trylock" hack. Although this hack can be probably removed, see the changelog. 3/4 and 4/4 try to make the lockdep annotations more consistent. If we want to use lockdep we should not hide the "write" locks we hold when we call freeze_fs(sb) and unfreeze_fs(sb). Please review. Oleg. fs/btrfs/transaction.c | 8 +--- fs/super.c | 101 +++++++++++++++++++++++++++++------------------ fs/xfs/xfs_aops.c | 6 +-- include/linux/fs.h | 5 ++ 4 files changed, 71 insertions(+), 49 deletions(-)