Message ID | 20180518074918.13816-15-kent.overstreet@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D9EC60230 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 07:50:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FAD02886A for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 07:50:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8400128875; Fri, 18 May 2018 07:50:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BA4D28899 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 07:50:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7DCD86B0590; Fri, 18 May 2018 03:50:15 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 78C996B0591; Fri, 18 May 2018 03:50:15 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 67BB76B0592; Fri, 18 May 2018 03:50:15 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt0-f200.google.com (mail-qt0-f200.google.com [209.85.216.200]) by kanga.kvack.org (Postfix) with ESMTP id 37CBF6B0590 for <linux-mm@kvack.org>; Fri, 18 May 2018 03:50:15 -0400 (EDT) Received: by mail-qt0-f200.google.com with SMTP id w26-v6so6093606qto.4 for <linux-mm@kvack.org>; Fri, 18 May 2018 00:50:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=KSbll+Wje3xrxUbjlcSgDZqAZsv1sLoGbWBo7EkKNtM=; b=G18QQyqJR0Q3vuemE2pVHBkLBn3JPCchs7Ex6EBaVaRcNeVavoOAW5TXmjIhlSVuDR sVYnyeWeXGa1AyL9x5fQsI1QLcey/PF6T/PvBN4fzM+b+OCf/nn7Bga0zv9MkKUum0Wv ocPRu+aXJvMstfNosNuelLpeQb10Qy5m7VVOpIykOK8O0ekQ64iNJSQVG3hje/b3vDsr 8xM03kfWM7k7938gc5l7E5+bqed3+7tA3rhzEenMmq7ShHK1SqF0JA5wM19QhUGJ/yUO XYpFl+TEQqNHl+MFdSfIHM7DH43Taf3Pn2HHo3nWHh7Y3A4ulWbw0mE4tmdXTXpV5Ktx lPqQ== X-Gm-Message-State: ALKqPwefgCvnzMoPZvguGWkM94dDt9CmkkjIz4sVG1UC9sAkTRaVcRYa pn7cEcdcXNqhoDZEOuVFtqmlV1q2fOEejfpQJwi/Gtk1Q+b9oUO+j6h56xnGY+p+1y+nzadA4ML tJV4mYSGjywZJH05GlUpy9tfxcKdgeNsVA+EoLDhEYCj6x9C2SbCwvc61FRUf97Jhk9N6gVgHDs qSpjzCrQtOaEi8f1wePoXQabPwLgtgm0eSZ2yDOFi7rDqbbDmUYimYofIKL7T3NljDN4Rep1+9b uBAXIZcxvTzmmOWwvrvuxC1UIo52o5pyBH4FwTXN3XMBmzq4wdWJXc9jPScvEuydfiBP1BF0M+c Mqo7ky/4H3T1padEtsT29xWuePYA84YlHi8GaZUXw9i6kDhhQKm81DKwIx07aZA0O3QSvAWPq8i p X-Received: by 2002:a37:2655:: with SMTP id y82-v6mr7471902qkg.18.1526629815033; Fri, 18 May 2018 00:50:15 -0700 (PDT) X-Received: by 2002:a37:2655:: with SMTP id y82-v6mr7471895qkg.18.1526629814574; Fri, 18 May 2018 00:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526629814; cv=none; d=google.com; s=arc-20160816; b=OttvJNcwC7s5j03jLmovsSbi8auAIyIJwc+nVuiy0UwnFSICySIGR04Pm8xTG/Tyat bP2su06ebobnEfsCmgcXQ/y8qCsv8NL7SOrNs+1MpeB2wbizKxo+2/d/xRzLnwNPYAUq 1CDhDRigISj23Y8kk2aVmHMYtUTXanL4gZOqkM3o6MULYUT/hgZlGJQepYM6a+d0cZJP rAzhZ73PUbwfLtzSoqPBzfHTqEdCqzXyb4N8AzLCf832B7w2OzVBPV1RKUBsIp8a+qP4 Ju/EBuZWM58z7gSkBqO5q69nbz33ZbGQ0RtcSqy/y+eF8UrXUE6FLAsd4cDRWgyL8y11 ZBig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KSbll+Wje3xrxUbjlcSgDZqAZsv1sLoGbWBo7EkKNtM=; b=E8yr+ozcZECcVs5rSFOSmYawJBDeTPi41OgRF57BAvD/EhL2KU1B+IHxEWCVKeBvsh dOyzumkz7Ukm5u5OuvF6e4PRvf4BYxVJao6yCNlifhSNbblP1VBZskZwaFX5WxBzzRcm XZdyEFWYBxPN5rlOyqMafmrJEpobiiRBVqSP2gD8b5iaej8+n2PT3f6Rz//TdEXewH4K kmh96R5lRQf2uYjp0otRINczqFz+0Y6I0w8bb9j5kBx//1k4gPwkFovWO8j9lIRyczUA /lQ4EtypobUyv08X+t/+C3kYDCxcGlaH3PkU3WmdIqSG/H6u30F45BO0JzrzyQlyyCM7 hCgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZokrsdwP; spf=pass (google.com: domain of kent.overstreet@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=kent.overstreet@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 21-v6sor837492qkk.89.2018.05.18.00.50.14 for <linux-mm@kvack.org> (Google Transport Security); Fri, 18 May 2018 00:50:14 -0700 (PDT) Received-SPF: pass (google.com: domain of kent.overstreet@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZokrsdwP; spf=pass (google.com: domain of kent.overstreet@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=kent.overstreet@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-Smtp-Source: AB8JxZoL3AiIviOKdHrNOfAbn8VtPNkg4tbBYqsmtqEZTe4dyCr9apZRkBYc/ACaORDf0DBczoTz0w== 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 <kent.overstreet@gmail.com> To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, Jens Axboe <axboe@kernel.dk>, Ingo Molnar <mingo@kernel.org> Cc: Kent Overstreet <kent.overstreet@gmail.com> 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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); }
Since a bio can point to userspace pages (e.g. direct IO), this is generally necessary. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> --- block/bio.c | 2 ++ 1 file changed, 2 insertions(+)