Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4208198imm; Fri, 18 May 2018 00:53:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7da628mImZIED9pumRyCPemsXPLjmTLLkZHqRZWz9odIWDVCljccbxSekL1DkohGCAhWD X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr8521647plz.177.1526630004302; Fri, 18 May 2018 00:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526630004; cv=none; d=google.com; s=arc-20160816; b=HIGSDhV05eCWM97ReFfwqsy/hNdxHCiQ97DJ5/O6jfMnfwdZhVeDclBn6DHnneSkF3 SfQQC1g9nw9c1u1ra5QLsHy5Bfa0VgiAd3f9Hron0ibU9rnHnrxbP+vV03G2SuPBJ/67 QVuGoK4BNAeYpfQ8vH8qO6g20fXfBEvcbD4mzdadpbvDfJ/zPIO256oJMKGUKwosyuII pCBa2sAwmQ9K2VrOLOCu9nDiOSfbm7AXAEMFbBZ3kQJwXQjCxUlOqByoQJf8wNA9+G7F 2gqCtx5BkOmGVPWLjT7cIoPeeY3tQMpc9nRu+UE06mza2dPVCrPGwI8KMOWyEoJx7RwM V9cw== 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=evxvcD3COkDQZzplLF8BUzaM8Nx7B2xEfqOQ0m2YbjLPyA7/w0b/JamaHgeWodwPoJ JKJxApoKFi69X0hJ0/JmYPL9Vd+0wnZ4OXxt6j9X9N+LpENAfLjc/ebpbHx9T7k6zdZs fGzXyK3wapnsXjQI66g1w5Whokt4Ouq7JWzX0vCmFA8PMxMinjYe12815DcXt4ZGgVL0 oHImGjpEseF1GyAY9QBBS/ygP1k5f+YD7EKB56mXRMDxFZyTzj19jAtbRDIoopKlCUEN AuHvGk5tI6WwOzaQya+Ar6dAo8n3rWc7qmk6rgvgn3xphqn1GPd5/+foXQprjEIt6p5E bWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZokrsdwP; 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 f4-v6si5461984pgs.16.2018.05.18.00.53.09; Fri, 18 May 2018 00:53:24 -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=ZokrsdwP; 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 S1752591AbeERHwc (ORCPT + 99 others); Fri, 18 May 2018 03:52:32 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:42654 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752334AbeERHuP (ORCPT ); Fri, 18 May 2018 03:50:15 -0400 Received: by mail-qk0-f193.google.com with SMTP id b22-v6so5720338qkj.9; Fri, 18 May 2018 00:50:15 -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=ZokrsdwPuBM4daMZAyuGbzzzdhw3kQsnV5qB4ICRg0o+NBt3lpdia8T24RMaMrj6eA lE10vEdTPpuA7oWEBLBU2ju1saRLxC1Hm6qc7nNaLcMjI7uw1OZ8DsVBXasG424p5e61 mhvWsM3ttjOufkJ1EL1arN9rHvbK/+Jq0yPB8nrKa2WEwcSpdxqW6pNtA2PIAx5LG81h MwBpqlchLfWFCU+YmHADEls1I77cRMUarDV9dyT9Hgz40SawaTeJ4u49JYoUmCFYF0A0 Sz/RrydIQJj5znC/ZxIX2BRjIC9hzk2QLsXZdQX0T2WgkQCzVjNQWsIRh9yVBCOS4N40 KKZw== 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=OjYCr7OMqAKdfAcQRO+kwJRMuQdimwHwYGloBoKkqCv4j8Y5xfSJrI9uLbqkaSP3CI cMLLUXA+etcjlhn62KWZzlXsqRT+tbwm/eHZOET0ICKDys+nL4yKaiOyYqATboEpKVVa SkMD6kfywMWYWcnPShigUrBGAqW67PYvHTZdWAChW/GjewZueIMOnUKK9IFlimDk+RGK CVAla8a5X2qSmzaxTGW+USMmj09ifbJaV80I8GnJ8tc5UV+foKaDUsG1/qL8Ijv/n537 ABjeJRc/lvcf9XYd4uTqCFSzVELvGnqeiL6baGkoG1/cWMl075ih/bHxbrM6w+yLL9qj Y9YA== X-Gm-Message-State: ALKqPwfSNqZ8LA/G4vRJHnD0EIB3rZkT8GA//ZnX9C6fNRSBN0Dk80MM bdf2JXVzZTT7ZDe9YOwUXOivDjsNew== X-Received: by 2002:a37:1f9c:: with SMTP id n28-v6mr8052704qkh.379.1526629814308; Fri, 18 May 2018 00:50:14 -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 s64-v6sm5443004qkl.85.2018.05.18.00.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 00:50:13 -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: Fri, 18 May 2018 03:49:12 -0400 Message-Id: <20180518074918.13816-15-kent.overstreet@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518074918.13816-1-kent.overstreet@gmail.com> References: <20180518074918.13816-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