Received: by 10.192.165.148 with SMTP id m20csp4961201imm; Tue, 8 May 2018 18:37:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbEBDaDmx7exoJ2+CkDd3zXNkv7NXKkBMRzXBMCkPSHQuqwBpQx4XqMSDgDyZUVvkdl63R X-Received: by 10.98.147.66 with SMTP id b63mr42282210pfe.130.1525829839364; Tue, 08 May 2018 18:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525829839; cv=none; d=google.com; s=arc-20160816; b=pi+DZle1FfVZj2UKkLyVOrCm02U0Lrrmm1B1+p66m27QLBYbXJnetTSM4eb6aAkikO zsDYnie34wRkpnlobe9EXJDnCThE/8lh44Nx/iprWzfWdhx2/TgNCApyzW9NHkRjoQVD CYnW7iFZ85HY/InvKjw1RswOvH/SSORxK6e6IZsf4g1/59EAof7fA/vR8G1OyGAAaCiB X5hf3cLVG75ny1ljiWKenDkf7F4WpNXZvJNwOkHZoc059gknPZW7xGpZB/W8jOUGiRSC Sk30Gp5Ufb04LpHtxJq2c+KkXzLluwlMw5zWIruuKkn75t1MFZqa4iTVjGCR9nC1yl1W Q9IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=KSbll+Wje3xrxUbjlcSgDZqAZsv1sLoGbWBo7EkKNtM=; b=j6298TlVtRnYjvOrPm+YMBN3D+lgfxCrZwIawmR9/SCFWq8/0oG0R1lZAN7/hpmWh7 jCEGcByqgYyrEBV6ZoAkzIDIH76oNutUyeVxDNEKw2DUiXrvtLK60l/2NvpBBcFyhU59 XdCqhWQCXX3AacnCBWhzRHxJrQv5WLd5b20ztpI1XoXrVvtpm5FhhkCNP/flWBHQI8di jI+fVuxTxJygFqrdz7iRHgfC98h43PnXUA19OxkMVcIgYFKQngMcmvGAU4VN9dO8t93R ozigzYJnBlmPixjqgWXbmpyqk9NbnOfZybH3FmYx74pIYZHIEvBeSTwu3Ycysm3693Jb KyUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ms/YiQ1G; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16-v6si27020808pli.176.2018.05.08.18.37.05; Tue, 08 May 2018 18:37:19 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=ms/YiQ1G; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933577AbeEIBed (ORCPT + 99 others); Tue, 8 May 2018 21:34:33 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:34763 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933532AbeEIBe1 (ORCPT ); Tue, 8 May 2018 21:34:27 -0400 Received: by mail-qt0-f194.google.com with SMTP id m5-v6so43683138qti.1; Tue, 08 May 2018 18:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KSbll+Wje3xrxUbjlcSgDZqAZsv1sLoGbWBo7EkKNtM=; b=ms/YiQ1GyeBHlwfOWHkpPAhgIwntEEdhr59H0uGqyLk9lqowdmLj85u34A2h6Cp8v5 HBTC7qcGdlqjPMPKp8gSBTk5LHCEQxZg/waDmDDC+VoX4w48YtH1m3eYWvY7aa/c+kYp 5VWFitedb1LE8DLyYCYwPmJVwiFQk3dfFRAXa7bx7Ij6Cc3ZtFh9dXk++GHJYFul3Kzo tG7g4W8ZsSZR5Zas+YjO+zU5GFhsWNNPgYMOId+LnnKxYu9f4vhwzg1HAh03ER6lpGer VggFn7T0+wcZ0lrzcISr7xn9sEMsNejWisi4ECtQ9zQHIhFTuZ9vR93rp1+Qd+yJUE0A ZvdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KSbll+Wje3xrxUbjlcSgDZqAZsv1sLoGbWBo7EkKNtM=; b=o3KYVCTDqmfHbc0oKS4WHhwC9fucJehSwP0pwccIoNPfFrofMp4u0dIPYNagFvS05G lQTfV3PKCfrdxwUZqT4OQZ+2yQuL1sJuvdYZHmOdn0pL44BUAhg473jm0QnKsZFq6SGF wa/aYtiXr+yMdwdCZYG3p4FoJ346Wbo4gErU0t3dcFcoL7me+vjdKOx03er/OcYkaxup YHAe5vLE7izEbUkOzEqu3GILeMFw/DvtcJWEW4ohVmtv8Dx82OVQz2bQ+jcd3N8wk5W7 DcdVCDt8aq7xbFb65FPgk7fnITAULuUwF3Nn82rvZAKCqYwwPqjYEwA1b++vawYHhFtp eVrA== X-Gm-Message-State: ALQs6tDeYD2stdI+TlFqqWNAphUIsz544RyIAqX66/Wy90Eohdl5/fzF vDmn1yvx3P7qOImLokqDpzVZJWuYsQ== X-Received: by 2002:ac8:396f:: with SMTP id t44-v6mr38969584qtb.22.1525829666535; Tue, 08 May 2018 18:34:26 -0700 (PDT) Received: from localhost.localdomain (c-71-234-172-214.hsd1.vt.comcast.net. [71.234.172.214]) by smtp.gmail.com with ESMTPSA id x28-v6sm23719003qtx.95.2018.05.08.18.34.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 18:34:25 -0700 (PDT) From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, Jens Axboe , Ingo Molnar Cc: Kent Overstreet Subject: [PATCH 07/10] block: Add missing flush_dcache_page() call Date: Tue, 8 May 2018 21:33:55 -0400 Message-Id: <20180509013358.16399-8-kent.overstreet@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509013358.16399-1-kent.overstreet@gmail.com> References: <20180509013358.16399-1-kent.overstreet@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since a bio can point to userspace pages (e.g. direct IO), this is generally necessary. Signed-off-by: Kent Overstreet --- block/bio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/bio.c b/block/bio.c index c58544d4bc..ce8e259f9a 100644 --- a/block/bio.c +++ b/block/bio.c @@ -994,6 +994,8 @@ void bio_copy_data_iter(struct bio *dst, struct bvec_iter *dst_iter, kunmap_atomic(dst_p); kunmap_atomic(src_p); + flush_dcache_page(dst_bv.bv_page); + bio_advance_iter(src, src_iter, bytes); bio_advance_iter(dst, dst_iter, bytes); } -- 2.17.0