Skip to content
Commit a3535c7e authored by Rusty Russell's avatar Rusty Russell
Browse files

module: clean up load_module a little more.



1fb9341a 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: default avatarRusty Russell <rusty@rustcorp.com.au>
parent f2e207f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment