From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755967AbbGQRdG (ORCPT ); Fri, 17 Jul 2015 13:33:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55703 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307AbbGQRdD (ORCPT ); Fri, 17 Jul 2015 13:33:03 -0400 Date: Fri, 17 Jul 2015 19:31:17 +0200 From: Oleg Nesterov To: Dave Chinner Cc: Jan Kara , Dave Hansen , Al Viro , Linus Torvalds , Paul McKenney , Peter Zijlstra , Daniel Wagner , Davidlohr Bueso , Ingo Molnar , Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 0/4] change sb_writers to use percpu_rw_semaphore Message-ID: <20150717173117.GB30443@redhat.com> References: <20150714104810.GB24369@quack.suse.cz> <20150714133731.GA24837@redhat.com> <55A57C50.1080406@linux.intel.com> <20150714212249.GA18441@redhat.com> <55A581F9.3090507@linux.intel.com> <20150715064705.GA22609@quack.suse.cz> <20150715181920.GA1797@redhat.com> <20150716072654.GE22847@quack.suse.cz> <20150716173256.GA17753@redhat.com> <20150717012742.GV3902@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150717012742.GV3902@dastard> 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 On 07/17, Dave Chinner wrote: > > On Thu, Jul 16, 2015 at 07:32:56PM +0200, Oleg Nesterov wrote: > > > > #ifdef CONFIG_LOCKDEP > > /* > > * We want lockdep to tell us about possible deadlocks with freezing but > > * it's it bit tricky to properly instrument it. Getting a freeze protection > > * works as getting a read lock but there are subtle problems. XFS for example > > * gets freeze protection on internal level twice in some cases, which is OK > > Sorry, I've missed something here - where is XFS nesting > sb_start_intwrite() calls? Heh ;) I too tried to understand thi but failed. I was not surprized, I know nothing about fs/. Dave, I didn't write this comment. Please look at acquire_freeze_lock(). If we can remove this logic - great! but this needs a separate change. Oleg.