Message ID | 20180509013358.16399-8-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 9391E60236 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 01:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 649C628FF5 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 01:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5974D28FF8; Wed, 9 May 2018 01:34:43 +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=unavailable 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 6385F28FF5 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 01:34:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0E0086B0312; Tue, 8 May 2018 21:34:28 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 06D4E6B0313; Tue, 8 May 2018 21:34:27 -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 D8F3E6B0316; Tue, 8 May 2018 21:34:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f198.google.com (mail-qk0-f198.google.com [209.85.220.198]) by kanga.kvack.org (Postfix) with ESMTP id A72796B0312 for <linux-mm@kvack.org>; Tue, 8 May 2018 21:34:27 -0400 (EDT) Received: by mail-qk0-f198.google.com with SMTP id u127so25415690qka.9 for <linux-mm@kvack.org>; Tue, 08 May 2018 18:34:27 -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=l4IhzXNvjcgQ+iC1cvZu1Ze93O9do/T00WjvlK+uI20gcy0kqBHaOjKrKasOyZuLZd kmgBQG8RI7f4mgqNN9h3yCUxETg+WnYXBQ24QnuTfR0yWvJq9vCrmCXeFQL/WN/xVBd0 YWnFvFXwPf9QTlxEOvFkAsjEMKXUh5wpgjSqZVVXQsPFpu0PSsYYlAeCQ422/cBbSjkX ZiZCJhysljFH3iHDeOnQKo9Dn7EtlLUlGxHezd4m63ipW6UZ2JXzt7jO1qLm1U/VJFYJ vvbWMLTHWiYcPeokM9YCSZrd7+sGAdxSNyPykpMxhRiwoNxQmQ99aN4SvqcKl/PkuUtT cDaQ== X-Gm-Message-State: ALQs6tA4Xn8N1d+nQXzm3CqVtTgKQX4g56KlyPjf2sXttyGFcaPE+gV5 1JwAv/N3iXrSZcXJ4g4i1Kd4IcWYDDZvLW/cOzVL7xM1r0k2we+LiHFFJ3FEYDCk8mAmSAkJ8ai dGgIEkfdL9z3rwU2BdDPweGP3ngFVbMWyIK7skMjSK2KPdlqMpJo5/rT88DT44aJ/5kdzKDhbxK 1rKB05mTOK9lxVRl60AZNpnddqoP6Wn3+vQAa3fHKXUKaGyVAH6qUL6I+IEVdNdY0mYFolb11hS L1/h88qSGYmXdmcNZ3rDguZe+NVHZVp2jUJnxBknlt32gM0nGSk37PLRH1BrNi0dHuSj1Dk93J7 532DkmRcwDdK0zE3hRRDEyNJj+a7Oc7QvGTgZ9dEmj+sJbkbcPd3UJ+3BB6+M9fJrwMYgmN2jV2 P X-Received: by 2002:aed:2c81:: with SMTP id g1-v6mr40581705qtd.285.1525829667414; Tue, 08 May 2018 18:34:27 -0700 (PDT) X-Received: by 2002:aed:2c81:: with SMTP id g1-v6mr40581689qtd.285.1525829666920; Tue, 08 May 2018 18:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525829666; cv=none; d=google.com; s=arc-20160816; b=GOWCTH/VEmpv92/anXI2OMAiAYOtZatEqrPgSHHyCnZ50+vxKqZIjdJbeki5E+j881 Srg9pu0lc5bNnb/SKidzukEKlBk6y629mJ5xIQafHlxIqUt9StETRI7PL24ESoqrgLeA FoJN+QBS4iEa3kM99QCzpRZuIprj6Mh/qJMTTYFq6xG1Is/2dX8gIVbHr/cqxyjUI4Wt 9WyEkED5bdUQJTxumju4MM5Rw7xy3nfb5KwoMr8AbZLbspTW9Mje8hb/H0zwF+CJW+B7 0+bbJQ8Btx9tRC+806kped22hYN6R0UtQpKQGpEOaO/k0TLqTfIk9HSu9hl5R+XeirVa AARA== 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=fEJNfBWTPwnqG+8LAvPlpjdqcXeuhfQoUCnu6QhzSo3NbEc4lTCJduqUv/J5PV5549 w+WkkS8qND9pVwiXXXGSiuQJDUaPcS85B7oW1I/UJlQZXRiDyzbPBBC6Tl7a61DLXRVd y5uc3lgYWAjjZOeZDcwYWPJznoGSV5Bb2+AoRbFYLgQxOYmQULBHDS5nPLoOUGAlycv0 EPHnwDp5X4/DTx9R1D5DNo7QnZV0hMLpiXO7BWjGk0e24dI+qPCk0VaIgKWDguKyUDxS jaKy4Ybny3HTQJ1VFa/+WCZ0TJNuYuOh4r918t4bQu3uE3Mm3YYuta9YE4Qm9EzTymr0 EcqQ== 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: 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 w35-v6sor16426601qtb.73.2018.05.08.18.34.26 for <linux-mm@kvack.org> (Google Transport Security); Tue, 08 May 2018 18:34:26 -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=ms/YiQ1G; 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=ms/YiQ1GyeBHlwfOWHkpPAhgIwntEEdhr59H0uGqyLk9lqowdmLj85u34A2h6Cp8v5 HBTC7qcGdlqjPMPKp8gSBTk5LHCEQxZg/waDmDDC+VoX4w48YtH1m3eYWvY7aa/c+kYp 5VWFitedb1LE8DLyYCYwPmJVwiFQk3dfFRAXa7bx7Ij6Cc3ZtFh9dXk++GHJYFul3Kzo tG7g4W8ZsSZR5Zas+YjO+zU5GFhsWNNPgYMOId+LnnKxYu9f4vhwzg1HAh03ER6lpGer VggFn7T0+wcZ0lrzcISr7xn9sEMsNejWisi4ECtQ9zQHIhFTuZ9vR93rp1+Qd+yJUE0A ZvdA== X-Google-Smtp-Source: AB8JxZpjM6DG4JsDlui+eG+1+PEtsOKMzu5N3LrNc43l4QYW8T2J5SVI0VQ13Kakk9I/Ow0yKJllaA== 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 <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: 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> 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(+)