aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-06-02 16:19:53 +1000
committerShaohua Li <shli@fb.com>2016-06-13 11:54:21 -0700
commitf5b67ae86ee317db20c0e10d54f16a0bbbd3207d (patch)
tree8db4539e9c9f05624f2b198ddd1ccce54b281ce6 /tools/perf/scripts/python
parentmd/multipath: add rcu protection to rdev access in multipath_status. (diff)
downloadlinux-f5b67ae86ee317db20c0e10d54f16a0bbbd3207d.tar.gz
linux-f5b67ae86ee317db20c0e10d54f16a0bbbd3207d.zip
md: be extra careful not to take a reference to a Faulty device.
It is important that we never increment rdev->nr_pending on a Faulty device as ->hot_remove_disk() assumes that once the Faulty flag is visible no code will take a new reference. Some places take a new reference after only check In_sync. This should be safe as the two are changed together. However to make the code more obviously safe, add checks for 'Faulty' as well. Note: the actual rule is: Never increment nr_pending if Faulty is set and Blocked is clear, never clear Faulty, and never set Blocked without holding a reference through nr_pending. fix build error (Shaohua) Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
d>Hannes Reinecke1-11/+26 2016-10-21target/tcm_fc: return detailed error in ft_sess_create()Hannes Reinecke1-2/+3 2016-10-21target/tcm_fc: print command pointer in debug messageHannes Reinecke1-1/+1 2016-10-21target: fix potential race window in target_sess_cmd_list_waiting()Hannes Reinecke1-4/+8 2016-10-21watchdog: wdat_wdt: Ping the watchdog on resumeMika Westerberg1-0/+4 2016-10-20Revert "clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init"Chen-Yu Tsai1-2/+14 2016-10-20clocksource: Add J-Core timer/clocksource driverRich Felker4-0/+261