From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756451AbbGTRCf (ORCPT ); Mon, 20 Jul 2015 13:02:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57781 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbbGTRCe (ORCPT ); Mon, 20 Jul 2015 13:02:34 -0400 Date: Mon, 20 Jul 2015 19:00:44 +0200 From: Oleg Nesterov To: Al Viro , Dave Chinner , Dave Hansen , Jan Kara Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] sb_write: lockdep fixes/cleanups Message-ID: <20150720170044.GA3868@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 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(-)