Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1198682imm; Wed, 11 Jul 2018 19:56:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc5G7wZZPl53yIza05yFtcQw9oGGNiJUaN8YtvqIsD9Zoz4yg4QnJEVbEg7XkXG9EcJ5Yrq X-Received: by 2002:a62:c699:: with SMTP id x25-v6mr508529pfk.16.1531364192288; Wed, 11 Jul 2018 19:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531364192; cv=none; d=google.com; s=arc-20160816; b=k9stKG53AYsgZuMGoypGwFspS+3jJIP7w4I8+T4Zhoo4nc+yOydHNIvQ13yHRGFbn3 yANbpUMsk42D5myhC1Z8qK6Fi8FShJmAPmYKdGBHPkCFelpE5+XJpHv0ENUOBky0hRnO p9zZY42pvo6i+sTVdW03RYHiCelUg61m5SogHP8n9z0fWmFk35LyY4sM6uJUkNwIOyIU Nm8XaOnfQuuxkXMrBwXOP2GHFdTWMErKDPDE8X6bVN6nqZ6Z/3eoJb5ZEqqyD/BPbkj/ AG1coO4fT5baTPb9ACKl0JFaycz7W+L/ze39l95WAKBCwnmKWcNTE+uBBQtFlytqEx9c qtqA== 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=YUN1/u4lJ/8FdhEItiqcfT4HKIyIzKw9h6/5wCIO96I=; b=u+sFbq+AofHlRdlXinaXlQHH3RdgzxbVNUsqdp5Z+20Gi1otPkpg5OyZ+nAZwFEe4b 7q5yoVUoz2V0g/4NLkUFfoD2liHluWu3U41mDPFvbxfvThji2/bPYMgR9doQm8dhFDn+ X4ehlf9tDOfobUn+ydy0YBVCaINNPr3DNMC5pHL2PQhtWNZWQh3YGbtMKQGBg0xx1rH2 RboY4brxtMd3+pZTTMLuiL/woYIhzymnFunqF1MdYQpWZU+A+wHOYH+qupBaT40wRomg 59VjRiLJElRlP0vz65VUs2a7KlrUvpPMdlZPtCB0YrTTX8/2d+TfQkdR9ozu+f3h9bU2 gc+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="QdRps9w/"; 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 x185-v6si6169101pfb.306.2018.07.11.19.56.16; Wed, 11 Jul 2018 19:56:32 -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="QdRps9w/"; 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 S2389370AbeGKVJM (ORCPT + 99 others); Wed, 11 Jul 2018 17:09:12 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47002 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390327AbeGKVIw (ORCPT ); Wed, 11 Jul 2018 17:08:52 -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=YUN1/u4lJ/8FdhEItiqcfT4HKIyIzKw9h6/5wCIO96I=; b=QdRps9w/4ShEKb2ApQ8VibE0v dvNiiFvDm07ePBLMMyvPi5a30iZnSjRsqPr1oaPtUMR9jrOckzcXwCEtJgZxEPOZUJ8Eswk7X/ghO k9NfDMvdVlWuMXNDuYbgsbed3FJ5NYKZi/vf/nKQ0e4WBLlGmkynNzux0umOwcTpdFwAd+WX7vsJ+ MSclznIHmNzjHsz5Mdcs7jTgP/fzQ+JPH91ocVqNWgudLaIFGC9xHIKDK4OC0ubflQ4naeL8cSM1T 4pKvv3gauZ3o+xaaYqDawg63EpxwsvCeUdC83XzjNDA4uw0iTVKwU2ujb9mTwA0YDN6oimmXSnmyI XQuSXj9BQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdMFp-00059t-HP; Wed, 11 Jul 2018 21:02:29 +0000 From: Matthew Wilcox To: Dominique Martinet Cc: Matthew Wilcox , v9fs-developer@lists.sourceforge.net, Latchesar Ionkov , Eric Van Hensbergen , Ron Minnich , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v2 0/6] 9p: Use IDRs more effectively Date: Wed, 11 Jul 2018 14:02:19 -0700 Message-Id: <20180711210225.19730-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. v2: Address feedback from Dominique. Matthew Wilcox (6): 9p: Fix comment on smp_wmb 9p: Change p9_fid_create calling convention 9p: Replace the fidlist with an IDR 9p: Embed wait_queue_head into p9_req_t 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 | 319 ++++++++++++++-------------------------- net/9p/mod.c | 7 +- net/9p/trans_virtio.c | 2 +- net/9p/util.c | 141 ------------------ 7 files changed, 133 insertions(+), 407 deletions(-) delete mode 100644 net/9p/util.c -- 2.18.0