From: Lars Ellenberg Date: Wed, 24 Nov 2010 09:37:35 +0000 (+0100) Subject: drbd: remove /proc/drbd before unregistering from netlink X-Git-Tag: v2.6.39-rc1~37^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17a93f3007c13003c739a19d0814cb5c2d21daba;p=pandora-kernel.git drbd: remove /proc/drbd before unregistering from netlink There still exists a (theoretical) race on module unload, where /proc/drbd may still exist, but the netlink callback has been unregistered already, allowing drbdsetup to shout without listeners, and get no reply. Reorder remove_proc_entry and unregister of netlink callback. drbdsetup first checks for existence of the proc entry, and if that is missing, won't even try to contact the module. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed