Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3682179pxj; Tue, 15 Jun 2021 06:29:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4ad+dwDQ4GPXAEIoIM29nnvomAVJZQ4pyRNFAt0LUnjkYwnDtmVRgZSmGgGP04yDyRWUv X-Received: by 2002:a17:907:948f:: with SMTP id dm15mr20942368ejc.476.1623763747279; Tue, 15 Jun 2021 06:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623763747; cv=none; d=google.com; s=arc-20160816; b=chLeyQV5PIDsnkidqTbVHpR1j/MmtUlkqFRs0rmilotUpp+wE3q4zL1/B4apZv998+ 3rsjA/RFPJZ8cWQvjeAuH0ViuHyOp1j3JQg3dxKgUbUk2TOfYntJpQcfGOE1ZiGq0a7Z noqM+vT5Ldu0jYSA3akslQidQoMqczmo3p8akEianaaUV9w1sU2QynFrWBYeHgT4ODpG F/tHsUm1cjoC+/1LhwLowzHlshLrTKpyojEA3eSK3qY3XixZKDZTVI7XzNPle9kc4vW6 PBYDS7Uzbt5QdbA97QTE2beh/HpXvjZJXKl+MhDX4CDm4PazLQVb1D8Ov3v1FRdO1k4C 2nvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LANErqvAt5Dho8b4cxyvD6Xv2I3E/TWFG2nVLqqeNt0=; b=liUBzQatRoUTEUl4lC0dEC5XKDqHNx2OzwcOYTX/dj/UmctAFzlH9YgfKc/050q7nC kIPgQsghyucPr9K8NKNB1Eb17vTGolcvzTi3uA5qRufiPMb/EYllITKbEug160hnzDDo LTYkmjrOY9wdJOCPgMCGY2IxjVAenW5q2RZcXYBJR7HAPEYIfTDS8fUSRyS63w80rRsE GcNRJuL7Q4ikEu83IjJWEzB1DYItUoPpQxQiKm5A+ZxUs0Cch+CZUSfpQMnShxZJ2kBe zexeZ3B9fDglq7QueuYRaC1rMbTNh8Pd+kgfye7tYfxD2tJNpoZ912FPxZNXLCqZyq/q z0jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="palQ/f5W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck28si14913869edb.315.2021.06.15.06.28.43; Tue, 15 Jun 2021 06:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="palQ/f5W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230392AbhFON2I (ORCPT + 99 others); Tue, 15 Jun 2021 09:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhFON2H (ORCPT ); Tue, 15 Jun 2021 09:28:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D75C06175F; Tue, 15 Jun 2021 06:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=LANErqvAt5Dho8b4cxyvD6Xv2I3E/TWFG2nVLqqeNt0=; b=palQ/f5WxTm8MUXTTCoy3VZFDC n8V4XRmTumCgcm0WNBknFJw6HQJiqjd54owgb8f+cYy83XUlgvRsmb+DlLDYA5wxXFpqkTqJAjB50 efm1YQoc8XGJEamHRMsKYvrtPZ2S181JWCEuoNqOQ7Pt7tOW4cQ8XCVrne+pRUfgChrgEsiHNND/k wLywRQ9TWOnneUJ0N+Ey5Du3YzlLQW09zJMR++vzJXygwVyvD8WwNUP0G+Ch40K3M/aDfbBdo7gn/ QcL6T1+U3ecGgL2it0yE/+EreZ7FQj2mvuiecuAao9Hla+hgUstciBYyETsk96ZeXFsk3YIINLX0j IEL5j9+w==; Received: from [2001:4bb8:19b:fdce:9045:1e63:20f0:ca9] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt93p-006nu2-6X; Tue, 15 Jun 2021 13:25:00 +0000 From: Christoph Hellwig To: Jens Axboe , Thomas Gleixner Cc: Thomas Bogendoerfer , Geoff Levand , Ilya Dryomov , Dongsheng Yang , Mike Snitzer , "James E.J. Bottomley" , Ira Weiny , dm-devel@redhat.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ceph-devel@vger.kernel.org, linux-arch@vger.kernel.org Subject: switch the block layer to use kmap_local_page v2 Date: Tue, 15 Jun 2021 15:24:38 +0200 Message-Id: <20210615132456.753241-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series switches the core block layer code and all users of the existing bvec kmap helpers to use kmap_local_page. Drivers that currently use open coded kmap_atomic calls will converted in a follow on series. To do so a new kunmap variant is added that calls flush_kernel_dcache_page. I'm not entirely sure where to call flush_dcache_page vs flush_kernel_dcache_page, so I've tried to follow the documentation here, but additional feedback would be welcome. Changes since v1: - add more/better comments - add a new kunmap_local_dirty helper to feal with flush(_kernel)_dcache_page Diffstat: arch/mips/include/asm/mach-rc32434/rb.h | 2 - block/bio-integrity.c | 14 +++----- block/bio.c | 37 ++++++---------------- block/blk-map.c | 2 - block/bounce.c | 39 +++++------------------- block/t10-pi.c | 16 +++------ drivers/block/ps3disk.c | 19 +---------- drivers/block/rbd.c | 15 +-------- drivers/md/dm-writecache.c | 5 +-- include/linux/bio.h | 42 ------------------------- include/linux/bvec.h | 52 ++++++++++++++++++++++++++++++-- include/linux/highmem-internal.h | 7 ++++ include/linux/highmem.h | 10 ++++-- 13 files changed, 102 insertions(+), 158 deletions(-)