module: make locking more fine-grained.
Kay Sievers <firstname.lastname@example.org> reports that we still have some contention over module loading which is slowing boot. Linus also disliked a previous "drop lock and regrab" patch to fix the bne2 "gave up waiting for init of module libcrc32c" message. This is more ambitious: we only grab the lock where we need it. Signed-off-by: Rusty Russell <email@example.com> Cc: Brandon Philips <firstname.lastname@example.org> Cc: Kay Sievers <email@example.com> Cc: Linus Torvalds <firstname.lastname@example.org>
Showing with 42 additions and 23 deletions