aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWei Fang <fangwei1@huawei.com>2016-03-21 19:18:32 +0800
committerShaohua Li <shli@fb.com>2016-03-31 10:04:17 -0700
commit816b0acf3deb6d6be5d0519b286fdd4bafade905 (patch)
tree0b24951e8a0534dfc786a0fdd6faf1fd1459646e /tools/perf/scripts/python/export-to-postgresql.py
parentMerge branch 'parisc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (diff)
downloadwireguard-linux-816b0acf3deb6d6be5d0519b286fdd4bafade905.tar.xz
wireguard-linux-816b0acf3deb6d6be5d0519b286fdd4bafade905.zip
md:raid1: fix a dead loop when read from a WriteMostly disk
If first_bad == this_sector when we get the WriteMostly disk in read_balance(), valid disk will be returned with zero max_sectors. It'll lead to a dead loop in make_request(), and OOM will happen because of endless allocation of struct bio. Since we can't get data from this disk in this case, so continue for another disk. Signed-off-by: Wei Fang <fangwei1@huawei.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions