From: Rusty Russell Date: Mon, 21 Jan 2013 06:48:59 +0000 (+1030) Subject: module: clean up load_module a little more. X-Git-Tag: v3.9-rc1~91^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3535c7e4f4495fe947f7901d25447d80e04fe52;p=pandora-kernel.git module: clean up load_module a little more. 1fb9341ac34825aa40354e74d9a2c69df7d2c304 made our locking in load_module more complicated: we grab the mutex once to insert the module in the list, then again to upgrade it once it's formed. Since the locking is self-contained, it's neater to do this in separate functions. Signed-off-by: Rusty Russell --- Reading git-diff-tree failed