From: Tejun Heo Date: Wed, 24 Sep 2008 21:22:23 +0000 (-0500) Subject: 9p: implement proper trans module refcounting and unregistration X-Git-Tag: v2.6.27-rc8~25^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72029fe85d8d060b3f966f2dbc36b3c75b5a6532;p=pandora-kernel.git 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 Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed