Skip to contentSkip to conversation

IB/uverbs: Use anon_inodes instead of private infinibandeventfs

PATCH/RFC Roland Dreier 1 participant 1 message Feb 25, 2010 InfiniBand

lore
Share & tools
lore
#0 lore raw

The anon_inodes interface has been split to allow creating a bare (non-installed) file pointer and also extended to allow specifying O_RDONLY in the flags. This makes it a suitable replacement for the private "infinibandeventfs" pseudo-filesystem used by uverbs, and this replacement saves a small chunk of boilerplate code.

---
I've had this kicking around for a few weeks, and it looks OK to me and passes very light testing. Anyone see any issues with merging this for 2.6.34?

 drivers/infiniband/Kconfig            |    1 +
 drivers/infiniband/core/uverbs_main.c |   57 ++------------------------------
 2 files changed, 5 insertions(+), 53 deletions(-)
drivers/infiniband/Kconfig +1 -0
index dd0db67..975adce 100644
@@ -20,6 +20,7 @@ config INFINIBAND_USER_MAD
 
 config INFINIBAND_USER_ACCESS
 	tristate "InfiniBand userspace access (verbs and CM)"
+	select ANON_INODES
 	---help---
 	  Userspace InfiniBand access support.  This enables the
 	  kernel side of userspace verbs and the userspace
drivers/infiniband/core/uverbs_main.c +4 -53

114 lines not on this page · raw message

Signature · 11 lines
1.7.0


-- 
Roland Dreier  <[email protected]>
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html