Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5017856ybg; Mon, 21 Oct 2019 19:07:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuUSzl0rMSAuaxq4M9ny3zXrh9tb6ghZkJ3lZcH4lAt6e6CnxwRfMXklTjBrQWmFF1wlST X-Received: by 2002:a17:906:edc9:: with SMTP id sb9mr6280305ejb.64.1571710064868; Mon, 21 Oct 2019 19:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571710064; cv=none; d=google.com; s=arc-20160816; b=g4L6qXKlglkggSxVGsiwGwhNPnf9iZMJPuJ+TpxPqOeG1IIzof+Sk6oPd0fDXNl9Ki ydY3tp2qibJl9Fcg4UTI9tMv2CVZF3SSXLTL2VYod+REYO6jGvz3JJiSkyLZCeks/PPs SAmozRc/IhwLuEb7WmxL3TlTchsfo0ma7y7O/9TofE3nAAlSS220dFuL/Y2NmY4jo/oS JmsG3dSCPBgzoRwcsA99uZS+QRUZkN2qNB8cmmVV8vjlEnKGO1LmcROoSP2oELnzCxkH 3D8zI5PW6Bwck7fW7+MTcCLu+dLzDmJuWsHHfw05h9TZXfIucBEn0fgJO4ZYM4m8xOqe m7zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U8zC0pi58HNVgvXRenNwHhavuGCdq6iq04EqcnI0YUs=; b=y690UlygxZnug02jwEtGiWQurIKvLsAFFimavfxyjAbbLKlccSszMeTb8JOj7MHJBt GJOmW/QQk5odGwrJYNxDtt3zQrDS+iZHVsZJAJQZ/FvBad2UNzh4NmWbhbHn0XR59GYp fO4w6r/Kleeu9deI4qVSuug8ydXaOoq6WGwCOKnbVJFQXHB8w2hFnv93/4seEE357Ss3 bKrRaI5V5HX4sZeW2GPVgvFZDO0lkFbfbvp5RtrVSqRNuM0BLe8m24igBVj4ISMlBmSk SqLycIELIr6qcIWJY/TzkzALCe6enHjG8YGb8dX6czkM7u8913rLyRCj0+GdsH0qcbLT v8Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=hWHneUkV; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si10042500edr.71.2019.10.21.19.07.20; Mon, 21 Oct 2019 19:07:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=hWHneUkV; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727953AbfJVCE3 (ORCPT + 99 others); Mon, 21 Oct 2019 22:04:29 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36425 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730370AbfJVCE3 (ORCPT ); Mon, 21 Oct 2019 22:04:29 -0400 Received: by mail-pg1-f195.google.com with SMTP id 23so8960002pgk.3 for ; Mon, 21 Oct 2019 19:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mbobrowski-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=U8zC0pi58HNVgvXRenNwHhavuGCdq6iq04EqcnI0YUs=; b=hWHneUkVIlFf/L2jf24QvvpkHGg00gWSIVCG12Za7BdQfI2Sn5YkxZYiEPgJrH1olM 3HF1ynjdPeNKpYGI9DKjN4+gQ857ec82EGR57N/0MjnMoRuwMctvyFsrD6zrysm1XbmK gP3QagMh7Vfyc5KLV0ZmCnuvjPbmxcFmn50A/Ow5X4Vm0SV9yE89jorAolYdALRonZ4w PhV6jd0wXz0PbpOLN0kyUK3Wawr959bg0mFOC8+uw4/heTPiR/6k0K3jM7vr1ppWxMkw +zvsC3Ff2oYB8a4PxB6AsbSq7JEcwwCWzjpK9WmYU6av7am08nLGb7uSnmuzzccMkPsG rwKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=U8zC0pi58HNVgvXRenNwHhavuGCdq6iq04EqcnI0YUs=; b=EA5gUwEcvusMFOcLpei/+iKBDQPfdaD702+Rlsltvpob67l/g9zLhDbmSQlzRvXD4A Cvt+k86e/tU2UwQ9WMXBgqoUJfEx7yiONbCUNeoyp8ni6xx1eolFXPcvSbcIjlGmAkkx 5/ZSmogylgab2MAY0xa3q7ypG/TLjEYo1ghV4OI7wXFOq2mjtvlqFLTLKGjCHVhKOB9l XYMW+ys51H0gWV3FVEXtACbx6GYna0U54Aw2bz3zXlmaV23y1Tr1H8mq2c8tOBwVdfcl iv3IBpC+toYkPOeeuj3OA0llpStVOMRgxm416vRlnyKuYW/XhdVU9wJpMNR2znyPppqW 4phA== X-Gm-Message-State: APjAAAUR0grPtkWQTpc8BbsypBN9ePoLJ41Ah4foGvi5+eI45eKb3Laj 5O3leMJmqGKMA6PEBZVnmx3Y X-Received: by 2002:a17:90a:ec10:: with SMTP id l16mr1462745pjy.37.1571709868097; Mon, 21 Oct 2019 19:04:28 -0700 (PDT) Received: from athena.bobrowski.net (n1-41-199-60.bla2.nsw.optusnet.com.au. [1.41.199.60]) by smtp.gmail.com with ESMTPSA id 127sm21245928pfw.6.2019.10.21.19.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 19:04:27 -0700 (PDT) Date: Tue, 22 Oct 2019 13:04:21 +1100 From: Matthew Bobrowski To: Jan Kara Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@infradead.org, david@fromorbit.com, darrick.wong@oracle.com Subject: Re: [PATCH v5 08/12] ext4: update direct I/O read to do trylock in IOCB_NOWAIT cases Message-ID: <20191022020421.GE5092@athena.bobrowski.net> References: <5ee370a435eb08fb14579c7c197b16e9fa0886f0.1571647179.git.mbobrowski@mbobrowski.org> <20191021134817.GG25184@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021134817.GG25184@quack2.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Oct 21, 2019 at 03:48:17PM +0200, Jan Kara wrote: > On Mon 21-10-19 20:18:46, Matthew Bobrowski wrote: > > This patch updates the lock pattern in ext4_dio_read_iter() to only > > perform the trylock in IOCB_NOWAIT cases. > > The changelog is actually misleading. It should say something like "This > patch updates the lock pattern in ext4_dio_read_iter() to not block on > inode lock in case of IOCB_NOWAIT direct IO reads." > > Also to ease backporting of easy fixes, we try to put patches like this > early in the series (fixing code in ext4_direct_IO_read(), and then the > fixed code would just carry over to ext4_dio_read_iter()). OK, understood. Now I know this for next time. :) Providing that I have this patch precede the ext4_dio_read_iter() patch and implement this lock pattern in ext4_direct_IO_read(), am I OK to add the 'Reviewed-by' tag? ----