]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40d62789c14a6c2df0c0ba89fb053e1f9f00ffc2
treece4378e5017f76d1f8b48640eb13971001461923
parent07a91f28a3a446fdbbcdce16ec23cf457fa7bfbb
md: extend spinlock protection in register_md_cluster_operations

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