summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-12-15 02:56:57 +0100
committerNeilBrown <neilb@suse.de>2015-02-03 22:35:52 +0100
commit64590f45ddc7147fa1968147a1f5b5c436b728fe (patch)
treec33e8ce09d739bac929e8ca943a253cb03cafd12 /drivers/md/raid1.h
parentmd: make ->congested robust against personality changes. (diff)
downloadlinux-64590f45ddc7147fa1968147a1f5b5c436b728fe.tar.xz
linux-64590f45ddc7147fa1968147a1f5b5c436b728fe.zip
md: make merge_bvec_fn more robust in face of personality changes.
There is no locking around calls to merge_bvec_fn(), so it is possible that calls which coincide with a level (or personality) change could go wrong. So create a central dispatch point for these functions and use rcu_read_lock(). If the array is suspended, reject any merge that can be rejected. If not, we know it is safe to call the function. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.h')
0 files changed, 0 insertions, 0 deletions