From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f195.google.com ([209.85.215.195]:38143 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbeJ2FbQ (ORCPT ); Mon, 29 Oct 2018 01:31:16 -0400 Received: by mail-pg1-f195.google.com with SMTP id f8-v6so2859669pgq.5 for ; Sun, 28 Oct 2018 13:45:30 -0700 (PDT) Subject: Re: [PATCH RFC] kernel/locking, fs/direct-io: Introduce and use down_write_nolockdep() To: Peter Zijlstra , Dave Chinner Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, Johannes Berg , Ingo Molnar , Theodore Ts'o References: <20181026164905.214474-1-bvanassche@acm.org> <20181027053745.GI6311@dastard> <20181028175840.GA744@hirez.programming.kicks-ass.net> From: Bart Van Assche Message-ID: Date: Sun, 28 Oct 2018 13:45:27 -0700 MIME-Version: 1.0 In-Reply-To: <20181028175840.GA744@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 10/28/18 10:58 AM, Peter Zijlstra wrote: > On Sat, Oct 27, 2018 at 04:37:45PM +1100, Dave Chinner wrote: >> As an API, however, this needs to be consistent with >> down_read_non_owner()/up_read_non_owner() which are for exactly this >> same issue issue (different acquire/release contexts) on the read >> side of the rwsem. Indeed, it can probably use the same >> infrastructure... > > Also, from a quick look, this has been broken for donkeys years, > right? Hi Peter, If you are referring to the direct I/O code: the lockdep complaint shown in my patch description is new. I think the following commit from two months ago (which seems fine to me) made that lockdep complaint appear: 87915adc3f0a ("workqueue: re-add lockdep dependencies for flushing"). Bart.