From patchwork Wed May 9 01:33:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 10387955 Return-Path: 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 0175D60236 for ; Wed, 9 May 2018 01:34:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C425F28FF5 for ; Wed, 9 May 2018 01:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8F7228FF7; Wed, 9 May 2018 01:34:35 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67AAE28FF5 for ; Wed, 9 May 2018 01:34:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933558AbeEIBea (ORCPT ); Tue, 8 May 2018 21:34:30 -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-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 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }