From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 96775C43331 for ; Wed, 6 Nov 2019 22:47:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D601217F5 for ; Wed, 6 Nov 2019 22:47:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="zVJQE8iQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727328AbfKFWrR (ORCPT ); Wed, 6 Nov 2019 17:47:17 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:33023 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbfKFWrR (ORCPT ); Wed, 6 Nov 2019 17:47:17 -0500 Received: by mail-il1-f193.google.com with SMTP id m5so24956ilq.0 for ; Wed, 06 Nov 2019 14:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=H1aaCpP9OlAmaxxqu9H6y46feF/NAefAvferbzr7zCM=; b=zVJQE8iQkAv6wOotaD8OxnutkloaI40iV6xJJgLgY8JXxfvjHOdsC66k2jWNCPslub nS39zPh4KElQDdogTsS6pndP9HaZGBAkvBh23zRQpYirote3wX/ctzILIHb0VMnx3Bra MOQBJ8nByFxM3Yp6Qa9YaWdQgyknFLZkkCk2GNAwxQ3bMSY70qOrNpT2EhQO6K1Bd8T1 NWPd/ovaBB9yjKtlHvQJQ2ObQ26CYIYGyfopGEe0Y+ni+UZIIcEFfBMwS5d87TaQoLE7 0MId5RleDnaov1lTblCgXDZ9xUK0nDPSOwsBMrjYGRDHpag7whOD8yBHYSUOleZjLLCD Jl5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=H1aaCpP9OlAmaxxqu9H6y46feF/NAefAvferbzr7zCM=; b=KjfFTKJbEw+EadJ2lqtXmpg0B4hZwsGEYwkJrj11S1tLrZFDdq4+2arJ3kPEFaz516 93u2t8lHzG+bynRPC6iTH58jk2P/zEaazNL+UySNZtIhgwXVRU4xG1jWwgWeZXUj35no euxR/2Wz9chqFPNrBMIpcaLne63Ch7nrmNoIO62QUlVe800P3HldmR2MeQdJ6ops6BTg pqFAghKTti/I6JqzJKG0xa/Xz7Zf4ArDoSZqsBwjaKzjsknGL4E4J8Fyf87Z4V3CQwVW Aws4b4gXcsvDusMX8+qBEEH3VP5d1Orqv4kfyUWYfgoNKzYw4+Qk+cbh5Bcnop6fMKl9 AJ+g== X-Gm-Message-State: APjAAAUq0gl2KoAM6b53zopfB3ZU/U78LnpSLu5bYfOopXFghF7x6N8v LGqeuVnleVZf2C9gjOzLmAseM5aQ5Nc= X-Google-Smtp-Source: APXvYqy4RfqiV4GNOhb33unylJwViAvUPRgWjrCTO0BEanJB/l65Il/9sXEGhZHyL74sMwgomBsJLg== X-Received: by 2002:a92:100a:: with SMTP id y10mr297735ill.170.1573080436391; Wed, 06 Nov 2019 14:47:16 -0800 (PST) Received: from [192.168.1.159] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id e13sm10653iom.50.2019.11.06.14.47.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 14:47:15 -0800 (PST) Subject: Re: [PATCH v3 0/3] Inline sqe_submit To: Pavel Begunkov , io-uring@vger.kernel.org, linux-block@vger.kernel.org References: From: Jens Axboe Message-ID: <6b571653-4ae1-a5cf-49a9-5ee5e1e5caa5@kernel.dk> Date: Wed, 6 Nov 2019 15:47:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 11/6/19 3:41 PM, Pavel Begunkov wrote: > The idea is to not pass struct sqe_submit as a separate entity, > but always use req->submit instead, so there will be less stuff to > care about. > > Also, I've got steady +1% throughput improvement for nop tests. > Though, it's highly system-dependent, and I wouldn't count on it. > > v2: fix use-after-free catched by Jens > > v3: -EAGAIN, in case submission failed > > Pavel Begunkov (3): > io_uring: allocate io_kiocb upfront > io_uring: Use submit info inlined into req > io_uring: use inlined struct sqe_submit > > fs/io_uring.c | 134 +++++++++++++++++++++++++------------------------- > 1 file changed, 67 insertions(+), 67 deletions(-) This looks good to me now, thanks! Applied. -- Jens Axboe