Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1372302imu; Wed, 9 Jan 2019 17:20:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN6HPKLkaCReUJvs3F4+UEmWc1YEYlqxdtKeY8L3Y9NCSbOxGg3lRVCVIzMnBYRtpbIBKQYw X-Received: by 2002:a63:ac46:: with SMTP id z6mr7524535pgn.162.1547083215018; Wed, 09 Jan 2019 17:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547083214; cv=none; d=google.com; s=arc-20160816; b=ZDHEGbC5CIiUMMPwNdStYg5AsDi1VPKCamuaMa35cKoYlZDBglsQkwMiCuo5Csc4gp zSMTVizkwmZew58CcKBCVt2EqQk4VQtSydxLJuG4xydCN/D9TwlJI/3VfrcGVa3Wkm2g Od92Diz4kVPQpq8w4h/uaCK+2YtruAMGouYiuatxm0Bjt+y379jOILHQ8UgMq7qmmLWj nACMRL3mpdRf4LiSJ70fBvYyYPnq3jTCtRo4Qjq+z4eMoXtxbVr4MyEXCDbh5eB+X8T4 71SZ96gzxbD8NMlkHpIrrsUrP+azuaDoN4fdly+6KLMnL0yEYKxe7JJo4uJ+MJVVygeQ DS8w== 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=82vvuXTKjvPXqY9eZYLT5Juayyl3yZ2lLShppvfB5ig=; b=zVSjwWMoO0L72hWUJep8oclAjoJQzees/AaLrGFftTS7RGDcuvJ2AsCVT8TvtgG5ap 6PmTso7bLWp4kO7Tautpd5DT9sUUmzFF+x2B3geBLo1QNseDHryVdEe5Gfu7bTW2t+1/ TbXpmIhK2VoJG/2zdJ5jBegb48Dl+kbiQe0J4nrjPNingehe0M6SyuL8Yk4dB+1lfr6d r0zS8okOgeGonCflBFgt5xFWCR/uU+2E+JZ3aaIkHVoDLoXj9WmLDk8FZpvgm9s51/Y6 UJAfEmwoGvqaaNjmadNBVdz21my9TCe13tUTYr1VVYiLcg4JZ8tRcj1KRjMT+jZllwG7 NQYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KxLo6GfD; 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 z12si14243247plk.90.2019.01.09.17.20.00; Wed, 09 Jan 2019 17:20:14 -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=KxLo6GfD; 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 S1726913AbfAJBSo (ORCPT + 99 others); Wed, 9 Jan 2019 20:18:44 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46370 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbfAJBSn (ORCPT ); Wed, 9 Jan 2019 20:18:43 -0500 Received: by mail-lf1-f67.google.com with SMTP id y14so7071079lfg.13 for ; Wed, 09 Jan 2019 17:18:42 -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=82vvuXTKjvPXqY9eZYLT5Juayyl3yZ2lLShppvfB5ig=; b=KxLo6GfDAV4uZwzb+AO0y4CW2SQaTeb7bSKg4sPn3tU31Sj3xClf3pkssmSIEVKj4a 5tF2/WBR0ojdrQFPchyj/usU5H+/Tw49cSOH3RO66Otti6ncYBzubdwbAf5k2zbRCna8 Ge53H/XsQVHszxlmK6fPk+u/GyLt3eVNUiq+E= 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=82vvuXTKjvPXqY9eZYLT5Juayyl3yZ2lLShppvfB5ig=; b=kX+c3UnjPnDK3GXFRARDUYPa298UCoxc/eLwI83NKWTjnMeGcyWFYqp2ObvPCH2aqC 0aMM5GomQ71/Nv865qtSrhPKlWjl8fCp5B0h9fBPuE0lKuUB2tuhNGL8+3dEHZdDENiJ iJhg3z1Fnr+MrmAMrbYEz0hOll42kYT8LR1rzbJ/QgXsCwlCVOnosTlTkXlTa2QE93eZ YOihP3x2ejwnAcBIPuuY8vB2Y7FFkkM8sO+7k7Q1CDgEo5Tuvcj32pWA6jnW7csbWI2E tlloSykrY+g5HVZnwgeT9E85FzScMroHPRgu9pfLL84+ETmxKpi13mUerd6sA7XBNUvv EnPw== X-Gm-Message-State: AJcUukeQXpBuochF56pCslzcOuwpPp+3uwiQ+VsvGTf/Bx2d0uQa16kj JVMT5r5yDoFZsjKNkYPCH2TqUm65n0w= X-Received: by 2002:a19:f204:: with SMTP id q4mr4910503lfh.133.1547083121234; Wed, 09 Jan 2019 17:18:41 -0800 (PST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id g17sm15048468lfj.36.2019.01.09.17.18.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 17:18:38 -0800 (PST) Received: by mail-lj1-f175.google.com with SMTP id t9-v6so8199027ljh.6 for ; Wed, 09 Jan 2019 17:18:38 -0800 (PST) X-Received: by 2002:a2e:95c6:: with SMTP id y6-v6mr4534294ljh.59.1547083117840; Wed, 09 Jan 2019 17:18:37 -0800 (PST) MIME-Version: 1.0 References: <20190106001138.GW6310@bombadil.infradead.org> <20190108044336.GB27534@dastard> <20190109022430.GE27534@dastard> <20190109043906.GF27534@dastard> <20190110004424.GH27534@dastard> In-Reply-To: <20190110004424.GH27534@dastard> From: Linus Torvalds Date: Wed, 9 Jan 2019 17:18:21 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged To: Dave Chinner Cc: Jiri Kosina , Matthew Wilcox , Jann Horn , Andrew Morton , Greg KH , Peter Zijlstra , Michal Hocko , Linux-MM , kernel list , Linux API 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 Wed, Jan 9, 2019 at 4:44 PM Dave Chinner wrote: > > I wouldn't look at ext4 as an example of a reliable, problem free > direct IO implementation because, historically speaking, it's been a > series of nasty hacks (*cough* mount -o dioread_nolock *cough*) and > been far worse than XFS from data integrity, performance and > reliability perspectives. That's some big words from somebody who just admitted to much worse hacks. Seriously. XFS is buggy in this regard, ext4 apparently isn't. Thinking that it's better to just invalidate the cache for direct IO reads is all kinds of odd. Linus