Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2711023ybc; Mon, 25 Nov 2019 02:56:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxmCTOb06Mbb7gdeDfmeZp3XgkkaajlOCltaASCPUCLtvvYq8Ib5R304XpSWWWS1PPBdqtb X-Received: by 2002:aa7:c25a:: with SMTP id y26mr12833714edo.248.1574679390297; Mon, 25 Nov 2019 02:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574679390; cv=none; d=google.com; s=arc-20160816; b=fDQ8hK/S2goJs98yScCmhxlQmRENfu18KmGI42SmFla7YFlYHHr0cEj2WRl5/oRP// /MaVvaRfZwQyqHYkP9QHXqTCRVlB1bS5YpIJ9P1UQH8Ip3+OxfR63XPHG8mdu+Cvndra bZL7eMA+bTr59N8bzqZrUavE6r5TgRJLZMVmA2uikfzlhlXcT8hZzB4NXewUI+LXqRYo kfyq7zaaCmUAEPRl/oeRpwXLLfDbdQOW3U3VZyyICKY4AHlmmYcsEHwrnLh9EuN4glIm UWnqRHp0zl4AEwmOtJQ/paeahzb7cJsACI+Nb/cuQ5hIovsnBHxAYwPZTzUb1XTWU/2i H77A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bi5re4//WovKGOVUOVay0aFuM2RKiYZ7dV+O0Ky8THo=; b=tb8tv8wP697Jg+Q00WpvYAX1gRmc7nD+q2bG0dyehN9UELFFDVG2iiofmYNoXnFaeQ p9ib18JYRCA95COuIF4jG9/dpSRrYBdbVBkZrm8zsxK0zoOalVaGPSvlA2DXYtKpH9r/ 8kMnSnb8CtrvnGPrLon4hz4SakEVc6Pv0M5uMlgiN9cr06evEgfq1Y2db8iaKq9r0ZpE AwlGLyMA1VhmCXXmPlOij2yhSBb+UhPDtexoxSR4fmCcnxQhXHcYTolZvHmkRGn08rOs sU1YkyOUXyxC1doGWlma9pbMfzU75/zS4NTVbyhH0U463EskNTgPsq8Yz5O9Op7GNRxb SSqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R+E3W5GD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k27si5012617edk.319.2019.11.25.02.56.05; Mon, 25 Nov 2019 02:56:30 -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=@redhat.com header.s=mimecast20190719 header.b=R+E3W5GD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727471AbfKYKxH (ORCPT + 99 others); Mon, 25 Nov 2019 05:53:07 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:39290 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727278AbfKYKxG (ORCPT ); Mon, 25 Nov 2019 05:53:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574679185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bi5re4//WovKGOVUOVay0aFuM2RKiYZ7dV+O0Ky8THo=; b=R+E3W5GDPHz17cQ1ah1nAJsec49W7h3jY4Vo0VNcq/LjzyMlrUVOMtSsG+Xkxzj8ORnzpB GozzQhDKisvox0J6lVtwVLw+cAvOSvRQssekZgs1kxdoJ2bpT9LpJ7jAZzZ45CW1Pi7nsa 7P2YvlF3MTbNXdaARenQEUmDvRlAzO4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-333-8LXIc6n-MC-1gWmJ8rxzMw-1; Mon, 25 Nov 2019 05:53:04 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C5BB21083E83; Mon, 25 Nov 2019 10:53:00 +0000 (UTC) Received: from fogou.chygwyn.com (unknown [10.33.36.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 76A7360863; Mon, 25 Nov 2019 10:52:53 +0000 (UTC) Subject: Re: [PATCH] mm/filemap: do not allocate cache pages beyond end of file at read To: =?UTF-8?Q?Andreas_Gr=c3=bcnbacher?= Cc: Linus Torvalds , Konstantin Khlebnikov , "Kirill A. Shutemov" , Linux-MM , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , Alexander Viro , Johannes Weiner , "cluster-devel@redhat.com" , Ronnie Sahlberg , Steve French , Andreas Gruenbacher , Bob Peterson References: <157225677483.3442.4227193290486305330.stgit@buzz> <20191028124222.ld6u3dhhujfqcn7w@box> <20191028125702.xdfbs7rqhm3wer5t@box> <640bbe51-706b-8d9f-4abc-5f184de6a701@redhat.com> From: Steven Whitehouse Message-ID: <22f04f02-86e4-b379-81c8-08c002a648f0@redhat.com> Date: Mon, 25 Nov 2019 10:52:51 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: 8LXIc6n-MC-1gWmJ8rxzMw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 22/11/2019 23:59, Andreas Gr=C3=BCnbacher wrote: > Hi, > > Am Do., 31. Okt. 2019 um 12:43 Uhr schrieb Steven Whitehouse > : >> Andreas, Bob, have I missed anything here? > I've looked into this a bit, and it seems that there's a reasonable > way to get rid of the lock taking in ->readpage and ->readpages > without a lot of code duplication. My proposal for that consists of > multiple patches, so I've posted it separately: > > https://lore.kernel.org/linux-fsdevel/20191122235324.17245-1-agruenba@red= hat.com/T/#t > > Thanks, > Andreas > Andreas, thanks for taking a look at this. Linus, is that roughly what you were thinking of? Ronnie, Steve, can the same approach perhaps work for CIFS? Steve.