Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7899570imm; Thu, 28 Jun 2018 11:02:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLTQnb3Z61qF6qwke20lhthMODWcaVYmpz/AwbEkjhU926qhBSZ0swa1zh+8ykkMaqMCu3g X-Received: by 2002:a63:40c7:: with SMTP id n190-v6mr9721963pga.116.1530208978302; Thu, 28 Jun 2018 11:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530208978; cv=none; d=google.com; s=arc-20160816; b=Pe+Nd2eAnLhb9FRN8bcOWiLFnNUcEW2iUE19dtbkfHYND36Z4sKSmKUUJt047wUOZb dAAXI69kv1k/w2NyqAk8csRjcvOtExuJ/xZuEpG3dkpr/8tiivCOcsQ3xRkoauqU1C/v C9RwjiCCaOC2tE/2r+uvpyWiC0I8Hgb4L7Fvs5PifSYH6kXFYQtPtFdI07aQx/x8Iej9 AtBIl/adR80UEmOGvq1cc+7n+hoDsCH9RflmQS9oJT77KJajyaaTGmK/J8TWB2REMFoz Zxzekxv07emONOToPeuVuGkwmcHfCmIdJPX8EbRLyNT6aVTz5vxu9JY6c4G8cCc62HSh Rh1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9SIUR4/h7N88Ft/710EC07pnGoLnH5vY9wBLhMHhm4M=; b=WeCwTe9cnzVaWbfqNkM3QFyOC30pwdVBcyIIysrSXGsRFPk63/ul14Sw53GTcZ0owf nS3zThW6EUKnlBXG/dcDRTn3gluzBEK2gPxo8sFNqPujsHgso4s0e2GvwHJh8zhvI7J1 sZt65xA96EfzTitHjdj+VgxbUNyylQObW91KV4XcS+Ull/as1BcrV6rWX+RUW8BLjP+J iHXD/H7tnwmz9+fXPs3j3du2Kv/lXFdsnVurbL/gzTDy8hIUW+7MZX7tezeP7to/h/5N 1Thw4bw+izd+kpX0KF4E3cXdf0RiZmj5VxTJtVbvjkyUdCn+xW+v7gAdQdsatLhPoftv 2ZXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=spEHN0Au; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si6087149pgv.328.2018.06.28.11.02.43; Thu, 28 Jun 2018 11:02:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=spEHN0Au; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966033AbeF1N1B (ORCPT + 99 others); Thu, 28 Jun 2018 09:27:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49814 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753775AbeF1N07 (ORCPT ); Thu, 28 Jun 2018 09:26:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9SIUR4/h7N88Ft/710EC07pnGoLnH5vY9wBLhMHhm4M=; b=spEHN0AuDLR1Eu/j97KgVaeTr LZzf7AaYvp0ORitJ1xxl9nYBokCvM6S8zxWu0NCx+oEHhWQ8GPmbMpYA9h+lHU0BhPbr6Wf/9EFV5 wdGjcyMn/ILAfdFi5KBwFsvePuC72ZKy/80udyTZLkzdKroFyf7tmwfuZ1KOxnk2kETt5THGvJf6c +JIddpqrTNZbE1AlDpzTFUUj+2shF9IOcwN0rSaT9VSAoihgRdbefjrgd9Mhl+A98uohCc/jnytqW aWLdZpsyqvEw05jp4W8sbQ9wz6AopgLu4tKFPUZkAWpd1rt2xH0He+YqITXAOYiaXvRjsTIP318KZ +KVfL7jWQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYWwr-0000rV-TX; Thu, 28 Jun 2018 13:26:57 +0000 From: Matthew Wilcox To: v9fs-developer@lists.sourceforge.net Cc: linux-fsdevel@vger.kernel.org, Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , linux-kernel@vger.kernel.org, Matthew Wilcox Subject: [PATCH 0/6] 9p: Use IDRs more effectively Date: Thu, 28 Jun 2018 06:26:23 -0700 Message-Id: <20180628132629.3148-1-willy@infradead.org> X-Mailer: git-send-email 2.14.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 9p code doesn't take advantage of the IDR's ability to store a pointer. We can actually get rid of the p9_idpool abstraction and the multi-dimensional array of requests. I haven't tested these patches, so caveat maintainer. Matthew Wilcox (6): 9p: Change p9_fid_create calling convention 9p: Replace the fidlist with an IDR 9p: Embed wait_queue_head into p9_req_t 9p: Remove an unnecessary memory barrier 9p: Use a slab for allocating requests 9p: Remove p9_idpool include/net/9p/9p.h | 8 - include/net/9p/client.h | 62 ++------ net/9p/Makefile | 1 - net/9p/client.c | 322 ++++++++++++++-------------------------- net/9p/mod.c | 7 +- net/9p/trans_virtio.c | 2 +- net/9p/util.c | 141 ------------------ 7 files changed, 132 insertions(+), 411 deletions(-) delete mode 100644 net/9p/util.c -- 2.18.0