linux/net/9p
Tejun Heo 72029fe85d 9p: implement proper trans module refcounting and unregistration
9p trans modules aren't refcounted nor were they unregistered
properly.  Fix it.

* Add 9p_trans_module->owner and reference the module on each trans
  instance creation and put it on destruction.

* Protect v9fs_trans_list with a spinlock.  This isn't strictly
  necessary as the list is manipulated only during module loading /
  unloading but it's a good idea to make the API safe.

* Unregister trans modules when the corresponding module is being
  unloaded.

* While at it, kill unnecessary EXPORT_SYMBOL on p9_trans_fd_init().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
2008-09-24 16:22:23 -05:00
..
client.c 9p: implement proper trans module refcounting and unregistration 2008-09-24 16:22:23 -05:00
conv.c 9p: Documentation updates 2008-05-14 19:23:25 -05:00
error.c 9p: make cryptic unknown error from server less scary 2008-05-14 19:23:26 -05:00
fcprint.c 9p: Documentation updates 2008-05-14 19:23:25 -05:00
Kconfig 9p: fix error path during early mount 2008-05-14 19:23:27 -05:00
Makefile 9p: fix error path during early mount 2008-05-14 19:23:27 -05:00
mod.c 9p: implement proper trans module refcounting and unregistration 2008-09-24 16:22:23 -05:00
trans_fd.c 9p: implement proper trans module refcounting and unregistration 2008-09-24 16:22:23 -05:00
trans_virtio.c 9p: implement proper trans module refcounting and unregistration 2008-09-24 16:22:23 -05:00
util.c 9p: fix flags length in net 2008-05-14 19:23:26 -05:00