Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp72845ima; Thu, 31 Jan 2019 23:14:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN4GT3o3j/btlW2cOGjW3SYz/7dWI/F03GfU3sx1s1NY6rS3re21UUV4dAvzcNfiuSfD8RS1 X-Received: by 2002:a62:30c3:: with SMTP id w186mr38298106pfw.39.1549005285115; Thu, 31 Jan 2019 23:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549005285; cv=none; d=google.com; s=arc-20160816; b=JCXrOZT1n//lUOjt0ruWQsFfAReVEy430U6LPFA9Io+fi/swHxiILeQLZzWL/Gx6n1 rHsWMenqSwmF/Ej86+IqPTkm68AW7D5Tsii/dUM/nZjmSwi/Mgm3bNwXMVFuyp56/6XE yL9xj6+pCW2FixnanfIWDHyEn8W+USdWI1qUXvXqMQ5aW6PQezsQPRz31WirMutXuIgt sSXTKm7SGWOdQQrLzx3VoGg2tBsfYYhMI0ahZs8u16C2Ybzea7nMEe6te8HOt38GsV/3 fL3K4kSU5UF4YNxdQ1kNK4FPF6E9rxlEPK6lmgL3UlrwfAsAZjDkxkFMdqa8uwdAD6XP 2/NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zZ6l/FA/GUGfptSWUSsSvsPRMmY7tMc07VEVRU1/bZo=; b=HgqP6Mo/v7b/rdQcy+jeM/l06xMN7UzNFXz2+hY00eOapS27WV0nGqHeF3qzxQP0R+ I4s8tjGN53dD0GzNxSw42wByLNczTtPw66MRmroawOZKEtJh5k9Ooyja5zmG0gb3BuMJ swRiSgiRyrfH8/2ClmZRZ4fa6q54IrwmCh1M3zW8LjGIAd96RiWUKLn/K7Y/R/PPvp0x L7e+24SM/RgBp3dykXiCgMoD91TA/LIjO6AjgQhHPSvIu6uLd3/iHjFJFF9vVhAMkrpW LhzjEUpv/jOieFbxp5QUSCpZrteTDenF0M0DouMyVrB4d+RbfZWF/rkIe55axiWSOSJD AZcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RjNdbbwU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 be9si6895207plb.143.2019.01.31.23.14.30; Thu, 31 Jan 2019 23:14:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@linux-foundation.org header.s=google header.b=RjNdbbwU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbfBAHOA (ORCPT + 99 others); Fri, 1 Feb 2019 02:14:00 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:41605 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfBAHOA (ORCPT ); Fri, 1 Feb 2019 02:14:00 -0500 Received: by mail-lj1-f194.google.com with SMTP id k15-v6so4891237ljc.8 for ; Thu, 31 Jan 2019 23:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zZ6l/FA/GUGfptSWUSsSvsPRMmY7tMc07VEVRU1/bZo=; b=RjNdbbwUIFJ0LwmamP5F0mU3irkYq2z0IVuzFdanXrbhj8sEB4vxYpXt3m3Fy+AB1M SPS0q/lXChAKZa7+XTmR/PS28WXYasFDvxUp+ubNu2T9eyNkNiPyzBdq2/uXlJ4I+rNj IqrPf9cFc5xriouM82L1v7b8OYmIQRv6uSAyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zZ6l/FA/GUGfptSWUSsSvsPRMmY7tMc07VEVRU1/bZo=; b=M9XBuOdtnjbGK6WvAKbCn1XcRxUQutsmNWC9XBWEzHdt4d3YcPQn0eiW+66/9MFRX+ uNrpXGGiWEU7v/SXiDsz1YbZm//4tQCvcqGnAAd/gMAyV3NevC1pDufwR9AaYCaQn9sY HkuUdFNlzoIsQllqzGFHeMH5BJsREHV3VAM1Y6qzanrYmha4P1KDy4vEA33Gau+nvtuk 3aSwGOb6bjWRKiy3h9L9tFaO9VGqVqGhDaF0+GwP2JaX7t7uMH5wL4OFPCl8aaJ3xMpW Oc3kBFqtqdbQ8piuoz+FG7uprrOMgbNpHNRP32INw4R9TSgd5HJXznRNZFnb1TF5RINt qRWw== X-Gm-Message-State: AJcUukeldAcFmhvBV9A98up9hTwk79VjpYwqL1NUub2B9zPDFSe3XCU8 kAkXRl1EUp+QVK1VUaI9O6kk9ThoGp0= X-Received: by 2002:a2e:83d7:: with SMTP id s23-v6mr30125507ljh.139.1549005238061; Thu, 31 Jan 2019 23:13:58 -0800 (PST) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id f16-v6sm1152850lji.88.2019.01.31.23.13.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 23:13:57 -0800 (PST) Received: by mail-lj1-f176.google.com with SMTP id k15-v6so4891191ljc.8 for ; Thu, 31 Jan 2019 23:13:57 -0800 (PST) X-Received: by 2002:a2e:8045:: with SMTP id p5-v6mr29493803ljg.87.1549004749092; Thu, 31 Jan 2019 23:05:49 -0800 (PST) MIME-Version: 1.0 References: <20190130124420.1834-1-vbabka@suse.cz> <20190130124420.1834-3-vbabka@suse.cz> <20190131095644.GR18811@dhcp22.suse.cz> <20190131102348.GT18811@dhcp22.suse.cz> <20190201051355.GV6173@dastard> In-Reply-To: <20190201051355.GV6173@dastard> From: Linus Torvalds Date: Thu, 31 Jan 2019 23:05:32 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O To: Dave Chinner Cc: Michal Hocko , Jiri Kosina , Vlastimil Babka , Andrew Morton , Linux List Kernel Mailing , Linux-MM , Linux API , Peter Zijlstra , Greg KH , Jann Horn , Dominique Martinet , Andy Lutomirski , Kevin Easton , Matthew Wilcox , Cyril Hrubis , Tejun Heo , "Kirill A . Shutemov" , Daniel Gruss , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 9:16 PM Dave Chinner wrote: > > You are conflating "best effort non-blocking operation" with > "atomic guarantee". RWF_NOWAIT/IOCB_NOWAIT is the > former, not the latter. Right. That's my *point*, Dave. It's not 'atomic guarantee", and never will be. We are in 100% agreement. That's what I _said_. And part of "best effort" is very much "not a security information leak". I really don't see why you are so argumentative. As I mentioned earlier in the thread, it's actually quite possible that users will actually find that starting read-ahead is a *good* thing, Dave. Even - in fact *particularly* - the user you brought up: samba using RWF_NOWAIT to try to do things synchronously quickly. So Dave, why are you being so negative? Linus