md: extend spinlock protection in register_md_cluster_operations
authorNeilBrown <neilb@suse.com>
Thu, 13 Aug 2015 02:32:55 +0000 (12:32 +1000)
committerNeilBrown <neilb@suse.com>
Mon, 31 Aug 2015 17:42:59 +0000 (19:42 +0200)
This code looks racy.

The only possible race is if two modules try to register at the same
time and that won't happen.  But make the code look safe anyway.

Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c

diff --cc drivers/md/md.c
Simple merge