From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbdKFNdP (ORCPT ); Mon, 6 Nov 2017 08:33:15 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:36326 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983AbdKFNdO (ORCPT ); Mon, 6 Nov 2017 08:33:14 -0500 Date: Mon, 6 Nov 2017 13:33:04 +0000 From: Al Viro To: Jan Kara Cc: Dmitry Vyukov , syzbot , Andrew Morton , Johannes Weiner , jlayton@redhat.com, LKML , linux-mm@kvack.org, npiggin@gmail.com, rgoldwyn@suse.com, ross.zwisler@linux.intel.com, syzkaller-bugs@googlegroups.com Subject: Re: possible deadlock in generic_file_write_iter Message-ID: <20171106133304.GS21978@ZenIV.linux.org.uk> References: <94eb2c05f6a018dc21055d39c05b@google.com> <20171106032941.GR21978@ZenIV.linux.org.uk> <20171106131544.GB4359@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171106131544.GB4359@quack2.suse.cz> User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 06, 2017 at 02:15:44PM +0100, Jan Kara wrote: > > Should we annotate these inodes with different lock types? Or use > > nesting annotations? > > Well, you'd need to have a completely separate set of locking classes for > each filesystem to avoid false positives like these. And that would > increase number of classes lockdep has to handle significantly. So I'm not > sure it's really worth it... Especially when you consider that backing file might be on a filesystem that lives on another loop device. *All* per-{device,fs} locks involved would need classes split that way...