Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp717941pxf; Wed, 7 Apr 2021 09:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAkuNP+lxIDJYJGJkD3UEIMr5v9I7SqZDdkDfpiEWOrbO9sZWOxDWcsb8/3XZWT7sI/eAN X-Received: by 2002:aca:5ec6:: with SMTP id s189mr2940129oib.112.1617814259542; Wed, 07 Apr 2021 09:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617814259; cv=none; d=google.com; s=arc-20160816; b=prxa+oH2s4I64+lzoILJeKn8rNutYehEz4Qk8Qle1SlIWUS7Vo5XAO4WZRQdYZ86Wm yQshP1qzpivLqcGP5/0JHkIfJyo+JDmukcFTIHt6GpfXm5Vx7s5YDG3lFxhYsw9akzPB BC8ElZVYB7oW8nDnh6swikQXMWqMHug9dAWSZm6+Q6anT5q0wVlHxVFDGHGnX5ShQ5U2 Ut52c1EmBed5DqRXDqChDklcUSMM6+9QFzLODQi9SxkYduhNMYp2Drl7gYL3iz69W6mo M8ro9XtqLpE2b86fy0eTa7rn73HcGqrzVcHciH1MVT8B79TFelkG8AK9EdUErWuEe3DM NmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=VxqJ3bt6CreFlT+E4DjXvWhsZS5gJ+ukh7zd7QuHvYk=; b=L62kfBA1O0tDnbGkDZ4AKlLEwYs6s/rGrL9NzwLkNzjtP4NfDs+Nav2yBw9O3HufVQ b6byJ0R3U+4OfHbdMiRJjF7Sh6Ryz5JRfoJs3Q3LVvQ8w1yuItQmb7jtOzgDHAzL5rTO UnOToa6kK3HYnb/sWLR7seMSditycGtLMtPw8P5RJMi3SRDDLCbXPOyfZkbRJG7tTi8x 76HRVNRZ1NC9qGD5Ly5ZSl9NB+KI7/afq5CRTSnOtFffLm+R+TQVkAbPUwvcXlaDkY9R Oi4Fc1EA1uvqnSTnGEczZNnZsMLoN65xttv3zdsb0fLSy+T+0EBWvvAD/zRahgqaQwYo MQ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-11-rsa header.b=bt136Q8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si22821704otq.126.2021.04.07.09.50.15; Wed, 07 Apr 2021 09:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-11-rsa header.b=bt136Q8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347843AbhDGBvu (ORCPT + 99 others); Tue, 6 Apr 2021 21:51:50 -0400 Received: from server.lespinasse.org ([63.205.204.226]:60961 "EHLO server.lespinasse.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241481AbhDGBvs (ORCPT ); Tue, 6 Apr 2021 21:51:48 -0400 X-Greylist: delayed 397 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Apr 2021 21:51:48 EDT DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-11-ed; t=1617759903; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=VxqJ3bt6CreFlT+E4DjXvWhsZS5gJ+ukh7zd7QuHvYk=; b=X3Xxdqgv/cgatkx6bKCq22bsDyuGIIFuutQU1wa2874aUSk8GjJZaziUZfVG9XXLdrI4V 2OUJDOleRQVwLd7Cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-11-rsa; t=1617759903; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=VxqJ3bt6CreFlT+E4DjXvWhsZS5gJ+ukh7zd7QuHvYk=; b=bt136Q8H0jbNSpwOh6Dm3mmUCo51a8AE75Ga5NiYl+NqjmDdqfmbcMcqVRCabeL568R29 QOV1rl19/dycIxYj6qjh5xGGTb3JZcZseB4ugflSTEx91ZKfCqN1yNS+gNUcjEe70Tjov8O jSOu/5mupmTj/x2dv6Jj/fvMkZ7DljWhsoae5tgXf2v17pkoqhqMGUHetO/9qIvSHqf0IB3 43aCaoZX9oubJLJZkd+NJnnie6w1ZqcrAHGbxuTWPlHsB7G4O2657zl+ev+3Pdv9MKz8N8l L39OQy2kIRL9HG0UzDQQJhoLw44rV7Cq+5tzxdGWfWNoaM4jIuwHLRFc02YQ== Received: from zeus.lespinasse.org (zeus.lespinasse.org [10.0.0.150]) by server.lespinasse.org (Postfix) with ESMTPS id 09034160356; Tue, 6 Apr 2021 18:45:03 -0700 (PDT) Received: by zeus.lespinasse.org (Postfix, from userid 1000) id EF43A19F31D; Tue, 6 Apr 2021 18:45:02 -0700 (PDT) From: Michel Lespinasse To: Linux-MM Cc: Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Paul McKenney , Andrew Morton , Suren Baghdasaryan , Joel Fernandes , Rom Lemarchand , Linux-Kernel , Michel Lespinasse Subject: [RFC PATCH 22/37] mm: enable speculative fault handling through do_swap_page() Date: Tue, 6 Apr 2021 18:44:47 -0700 Message-Id: <20210407014502.24091-23-michel@lespinasse.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210407014502.24091-1-michel@lespinasse.org> References: <20210407014502.24091-1-michel@lespinasse.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change do_swap_page() to allow speculative fault execution to proceed. Signed-off-by: Michel Lespinasse --- mm/memory.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index ab3160719bf3..6eddd7b4e89c 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3340,11 +3340,6 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) vm_fault_t ret = 0; void *shadow = NULL; - if (vmf->flags & FAULT_FLAG_SPECULATIVE) { - pte_unmap(vmf->pte); - return VM_FAULT_RETRY; - } - #if defined(CONFIG_SMP) || defined(CONFIG_PREEMPTION) if (sizeof(pte_t) > sizeof(unsigned long)) { /* -- 2.20.1