]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md-cluster: protect md_find_rdev_nr_rcu with rcu lock
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 12 Aug 2016 05:42:39 +0000 (13:42 +0800)
committerShaohua Li <shli@fb.com>
Wed, 21 Sep 2016 16:09:44 +0000 (09:09 -0700)
commit5f0aa21da6cc620b08e5f69f51db29cb1f722174
treed8c4500e089b5aae7d3a2ff26b23eec323fdee0a
parentc20c33f0e2abdb8bab1ec755ed668d7894bf9336
md-cluster: protect md_find_rdev_nr_rcu with rcu lock

We need to use rcu_read_lock/unlock to avoid potential
race.

Reported-by: Shaohua Li <shli@fb.com>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md-cluster.c