From patchwork Fri Mar 15 14:59:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10854947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB4B11515 for ; Fri, 15 Mar 2019 14:59:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0F3D2A9CF for ; Fri, 15 Mar 2019 14:59:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D5312A9C8; Fri, 15 Mar 2019 14:59:45 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 339362A9C8 for ; Fri, 15 Mar 2019 14:59:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729317AbfCOO7o (ORCPT ); Fri, 15 Mar 2019 10:59:44 -0400 Received: from mail-pg1-f173.google.com ([209.85.215.173]:42947 "EHLO mail-pg1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727668AbfCOO7n (ORCPT ); Fri, 15 Mar 2019 10:59:43 -0400 Received: by mail-pg1-f173.google.com with SMTP id b2so6629776pgl.9 for ; Fri, 15 Mar 2019 07:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Jz8JXKvrR91levwR+AKGQT+kkplKyy8RqUuN+K+6buE=; b=ih6BAd/5HS/Lv53w4/SUY6Mis0BV94tqSfnEwcCsOFs/r0qTCskYnGQFr5OJ6C09em ZqkZoE2aTG+eC2P5Zx4QNMdqtYz7Vc4ni+HTNqDIEfO8HHWhywCk2FNCFUmi/kvaIPKi NrJj0PXSaBmBP093n4Asxx2fiueY2ez6l2/Qg5fziJlRRluvTaBiugOg0K2LzS86UXU0 9VoEixXGK959jm/bLaJXe3gHMxWDbvokdMFcjy/O+5GrhjOUfZVbMeaD6/F51F1yuxFe jBfx4k3XTkZw49WzuT2KO1LcrQC84UlmIEeBlWdjeCK6IZDrJnckzH2lp64mt8HSiuy+ 0Zog== 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; bh=Jz8JXKvrR91levwR+AKGQT+kkplKyy8RqUuN+K+6buE=; b=R72Mr8MCGHXBBxWHIrows1+npqe98n+x2smlEGsojynO4td8d12wrPfMRifpTJPMca yvMUY4/laTgAqpWIIhxpZhhsPcs9+HslEVIuYLrsndesDYIjFoFxquVd0vVRsGEGoN4U nhmuqg0i5qyWm4V86phHVqzssmXA+IEzG0lrh/Ki20sutR7DXvlJHALxIO0Xg02yB+2Q Fy55tkqAMVGBXBB0Gp4mp1z/QHBWqa0T3KBKjzhzYRoAaLGGIpOyFCDMOOcuaKOC6mi7 DVhMZocHCO05CpNGt5dEMe/agrT5UOjE80nr3TSdyRRUNUF6gC6qjjLGyyupMs4hgMPn fc8w== X-Gm-Message-State: APjAAAUor8wsoJck/oIdWS7zuw8ILAITwA+fs4Rt+5Hhd87nAkqslAwP +R5Ksh/E0HvJdgsoqNTUgK+FWnzKP8gQAw== X-Google-Smtp-Source: APXvYqzxzSg0PM7fwgGnYcvC6PUjceYx6lJfWxaAHg+mekLyIhWGmoGPYvBOJeskRSMHOdb5Nwn7jg== X-Received: by 2002:a65:60c7:: with SMTP id r7mr3954476pgv.37.1552661982324; Fri, 15 Mar 2019 07:59:42 -0700 (PDT) Received: from x1.localdomain (66.29.188.166.static.utbb.net. [66.29.188.166]) by smtp.gmail.com with ESMTPSA id f28sm4287179pfh.178.2019.03.15.07.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 07:59:41 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Cc: viro@ZenIV.linux.org.uk Subject: [PATCHSET 0/3] io_uring improvements Date: Fri, 15 Mar 2019 08:59:35 -0600 Message-Id: <20190315145938.21516-1-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is on top of the just posted "PATCHSET v2 0/7] io_uring fixes" series. This re-introduces the ability to NOT have to touch page reference counts for our fixed buffers. Instead of assuming that's always safe to do with a BVEC iter, we add an explicit flag for that. This shifts the iter types a bit, but otherwise shouldn't cause any changes. The final patch re-adds the "we hit cache" flag. I left this out of the initial series due to concerns over informing userspace about this, with all the mincore etc discussions. block/bio.c | 43 +++++++++++++++++++---------------- fs/block_dev.c | 12 ++++++---- fs/io_uring.c | 9 +++++++- fs/iomap.c | 12 ++++++---- include/linux/blk_types.h | 1 + include/linux/uio.h | 24 +++++++++++++++---- include/uapi/linux/io_uring.h | 5 ++++ 7 files changed, 71 insertions(+), 35 deletions(-)