]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common, osd: add sanity checks around osd_scrub_max_preemptions 37470/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 16 Jun 2020 02:08:32 +0000 (10:08 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Sep 2020 16:27:03 +0000 (18:27 +0200)
commit42b3541fefea43190e6f5f54a89d4a13d1d528ee
treeb334a47e5ee8f595958e38e84aa3b3b49c9dd780
parenta3363c736f9076fa329a9aaff25ea82b817b5115
common, osd: add sanity checks around osd_scrub_max_preemptions

to limit maximum preempt_divisor we can use when backing off the
chunky-scrub range on preempting.

Otherwise large osd_scrub_max_preemptions values (i.e., >= 32)
would cause preempt_divisor overflow, hence the dreaded
“divide by zero error”.

Fixes: https://tracker.ceph.com/issues/46024
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit ae05de3e9b2e9868216e5168e50dfcb5074684cb)

Conflicts:
src/osd/PG.cc
- git got confused about where the change was/is
src/common/options.cc
src/osd/PG.cc