Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5850485imu; Wed, 30 Jan 2019 04:46:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN68xUXLnZ57faP+YJd19E/AmWRvkrTL4I3oCiRC5IorL7SJQ4O5RzBN0t5K6Ckh2IzlYUNx X-Received: by 2002:a63:cd11:: with SMTP id i17mr27647511pgg.345.1548852374934; Wed, 30 Jan 2019 04:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548852374; cv=none; d=google.com; s=arc-20160816; b=ZhHJtFti12OvmRkTyl4Y8n/9i6g/UXJ/GCaFZkwNaJzEIPbjvRXYey6JMAaSUUjGWn zRaHD02WNrM042+Rm6yN4jAjj1t/fPda/LxW//txzHlYwoshYoysGv1myl9s99g3IYus lKl7QzY1A9l/FPEn8dfCe16CeVPOuNpnS/CR/8LzzpjlyJmw69PHgXtJsJN9abvtw+sB 9AhgDbx4Uok39UpIpXIQL85wzhLnhBLJZfXqXyxPZv8xlFpNHE10eGGfxiccD2A+gJF9 qcTKiv3kWiRwjeiksvHBo1FFCQrkeW/3WLgMXoL7lt9TpuAeI27EcTHKAdCqwoqj9qVQ 45qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=D7DQqgItge2UeEQTW8Q1iI5PgclPoSq1iksp929EWUA=; b=w1dWCKiiImok9oa8dePMa5IiW+FqnOjSfBRLS1aHiV4cGS6pj8pHGwu7tt4ws4PNY1 8F0XCsrg2daJempo+ciUX1LBpZQ/mHLHiBx5pYMrQU5iIiDFFVQejL7l/mmFcM/mslv8 ULHElVkqilBlYO01K2Nj1ZQfP6XlMEkUYZrOAR+xo+wfbOaTOCD3O+4hUjme+0HIF93r SAwFpupyl/GXOJfdfuQ10RD8KES2CPCa9QoZfeJdTMDgt+9KLl23rG4hWl0ff4eEKPUf PuBOSGGaOMrs8dvI0PCjXk6iZV1ggTrVs0DxlmHN5T15Gt6MCp2EHMrn1tfE5KgwJc1j MOSg== ARC-Authentication-Results: i=1; mx.google.com; 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 j29si1297326pgm.554.2019.01.30.04.45.59; Wed, 30 Jan 2019 04:46: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; 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 S1730811AbfA3MpP (ORCPT + 99 others); Wed, 30 Jan 2019 07:45:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:41318 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727162AbfA3MpO (ORCPT ); Wed, 30 Jan 2019 07:45:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 412F8AE4B; Wed, 30 Jan 2019 12:45:13 +0000 (UTC) From: Vlastimil Babka To: Andrew Morton , Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, Peter Zijlstra , Greg KH , Jann Horn , Vlastimil Babka , Andy Lutomirski , Cyril Hrubis , Daniel Gruss , Dave Chinner , Dominique Martinet , Jiri Kosina , Jiri Kosina , Kevin Easton , "Kirill A. Shutemov" , Matthew Wilcox , Tejun Heo Subject: [PATCH 0/3] mincore() and IOCB_NOWAIT adjustments Date: Wed, 30 Jan 2019 13:44:17 +0100 Message-Id: <20190130124420.1834-1-vbabka@suse.cz> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I've collected the patches from the discussion for formal posting. The first two should be settled already, third one is the possible improvement I've mentioned earlier, where only in restricted case we resort to existence of page table mapping (the original and later reverted approach from Linus) instead of faking the result completely. Review and testing welcome. The consensus seems to be going through -mm tree for 5.1, unless Linus wants them alredy for 5.0. Jiri Kosina (2): mm/mincore: make mincore() more conservative mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O Vlastimil Babka (1): mm/mincore: provide mapped status when cached status is not allowed mm/filemap.c | 2 -- mm/mincore.c | 54 ++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 42 insertions(+), 14 deletions(-) -- 2.20.1