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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 6F33DC433F5 for ; Tue, 14 Sep 2021 11:46:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4AE1160E52 for ; Tue, 14 Sep 2021 11:46:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232248AbhINLr7 (ORCPT ); Tue, 14 Sep 2021 07:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232065AbhINLr4 (ORCPT ); Tue, 14 Sep 2021 07:47:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02488C061574; Tue, 14 Sep 2021 04:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uzhBfondxfBGtuI3LygrN3vuHuB3wvkg/TeMLODJ0wY=; b=C1rG6AaPuDMXGAqNsCuVsPTyRa huaJs1/AX27R0/mALFdUg4TtGIFar2KEeR9vyHbORinJ8afxMHfkSK1d4y0PnhIO2Lr0NLdhASmAu /xftc4aFN93KUmihSCWnYYf6+fUSY8Ds2Lg5EDWShlMwbqnZLqTixJTsRZrtPTqC3x/0KTFzOkc9t TJA0nOljNRPiLbNVzBGc+HhUGET1W3iXPag36hIvixUtIjGBKF1HEmDMuc8nKpGKYd01fi4Y1/jPc 91Pj9BFDSMk9jlt5Fh06nvDDjJpw/YzT7tX2nAENqkFqr9pTo+L8fHn9G/s9l61zgoIjfF3Sr2q6/ HMGG1a/w==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ6sO-00EcLs-Gk; Tue, 14 Sep 2021 11:45:40 +0000 Date: Tue, 14 Sep 2021 12:45:24 +0100 From: Christoph Hellwig To: Hamza Mahfooz Cc: linux-kernel@vger.kernel.org, Benjamin LaHaise , Alexander Viro , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] aio: convert active_reqs into a hashtable Message-ID: References: <20210914094625.171211-1-someguy@effective-light.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210914094625.171211-1-someguy@effective-light.com> 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 On Tue, Sep 14, 2021 at 05:46:25AM -0400, Hamza Mahfooz wrote: > Commit 833f4154ed56 ("aio: fold lookup_kiocb() into its sole caller") > suggests that, the fact that active_reqs is a linked-list means aio_kiocb > lookups in io_cancel() are inefficient. So, to get faster lookups (on > average) while maintaining similar insertion and deletion characteristics, > turn active_reqs into a hashtable. What workload cares about AIO cancellation performance?