commit | d44b0a928fa9925fb453d7acc42a48c79de2c6f7 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.com> | Thu Jun 02 16:19:52 2016 +1000 |
committer | Shaohua Li <shli@fb.com> | Mon Jun 13 11:54:14 2016 -0700 |
tree | 24351c0d633aeec643c7f39ef6642096d4255dc3 | |
parent | 83f1261f5e5516d7cf58a04b97e4e63e747a9157 [diff] |
md/raid10: add rcu protection in raid10_status. mirrors[].rdev can become NULL at any point unless: - a counted reference is held - ->reconfig_mutex is held, or - rcu_read_lock() is held raid10_status holds none of these. So add rcu_read_lock() protection. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>