From patchwork Mon Aug 9 21:23:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 12427287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30460C4320E for ; Mon, 9 Aug 2021 21:24:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11F2E60EE7 for ; Mon, 9 Aug 2021 21:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234504AbhHIVYb (ORCPT ); Mon, 9 Aug 2021 17:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230295AbhHIVYa (ORCPT ); Mon, 9 Aug 2021 17:24:30 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BB5C0613D3 for ; Mon, 9 Aug 2021 14:24:09 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id oa17so5151760pjb.1 for ; Mon, 09 Aug 2021 14:24:09 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=PP1ZfPKJqEpeBtzueEvBPGx+FIq9NBPbqy/H3X4n8yQ=; b=QntNk8vasegeRQEgvpTa/22T3k76x4N6NKutp80kBdgcUVkChC0EIARzOBzwW2+pTF RWHOkH2JqcD39EZC7on8rjGqpdPX4n7U96tyDrhHJNdbW/UtbwTKsiphXId+RsSCBq2M V9pjzdJfNYNUpHDrY/I8j2i+vgeukTmTtd2V0MELzz5NmkFOzktEP2fvX3drNNTsgcGM MEhMgreQtzoezgOnVZLzJSKqeSn8Q7krYOUC+nkMCosaLumz3slpkhUjvQpRP9Q5Xk5F n9L6n/M8KArazCvF28frDqVv6u5OAIAKNul8Xe7zT2MxrsTXBGjDdxQvJBJ4wNdi9IPm 1Psg== 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:mime-version:content-transfer-encoding; bh=PP1ZfPKJqEpeBtzueEvBPGx+FIq9NBPbqy/H3X4n8yQ=; b=TB3QzHOHTE0onWsODM9uce+ssRfI+5DXrHkPzBlXDsc10HFFZVyjTz8BCoCvJqRUIZ 3QB9HSM3MKDQ5GBCo7Tcc8d1zpQt7lQzQsOuNrjyXd7a9MtEjgCQbAmDmLF27sJJhNWF DOjzcJVUhu3wMdpRPa+h5GK0CIIRH7l0Pc/zgqPUzmzTDHbJ0bE2afjLMZRqP5cg/vUw qNK9IVy1st61MO4hYF1yenyWoqjyGyXWAXzvPWwRhjD4E+ZxeZ6R/R4IuvMSaOgKsDnx uMtyyV7rOnHZvxb+Alt3wz17HVAIi0iT2aYguyFFZbk5FMHdVlZ2js1KJ6v1OrH/Z7oo 1mkg== X-Gm-Message-State: AOAM533q77dbgDuCJWYRMYWZaf9L9xk1AVWb2ZitD4mfKTVN2N8/jzxT b7hk9n3bEZoNxtX99HibXU7NoQ== X-Google-Smtp-Source: ABdhPJz2rpmsQOTo4zm6VYOkCVmmpOo82fVRnfQFtN14Gdp8qotDxvLXa/X8xd9Ldy6LwtBIipfg7A== X-Received: by 2002:a17:90a:6a86:: with SMTP id u6mr1099946pjj.207.1628544249468; Mon, 09 Aug 2021 14:24:09 -0700 (PDT) Received: from localhost.localdomain ([198.8.77.61]) by smtp.gmail.com with ESMTPSA id m16sm439885pjz.30.2021.08.09.14.24.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 14:24:09 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org Cc: linux-block@vger.kernel.org, Jens Axboe Subject: [PATCH 2/4] fs: add bio alloc cache kiocb flag Date: Mon, 9 Aug 2021 15:23:59 -0600 Message-Id: <20210809212401.19807-3-axboe@kernel.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210809212401.19807-1-axboe@kernel.dk> References: <20210809212401.19807-1-axboe@kernel.dk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org We'll be using this to implement a recycling cache for the bio units used to do IO. Signed-off-by: Jens Axboe --- include/linux/fs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 640574294216..2ac1b01a4902 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -319,6 +319,8 @@ enum rw_hint { /* iocb->ki_waitq is valid */ #define IOCB_WAITQ (1 << 19) #define IOCB_NOIO (1 << 20) +/* bio cache can be used */ +#define IOCB_ALLOC_CACHE (1 << 21) struct kiocb { struct file *ki_filp;