]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common, osd: add sanity checks around osd_scrub_max_preemptions 35580/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 16 Jun 2020 02:08:32 +0000 (10:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 18 Jun 2020 00:45:25 +0000 (08:45 +0800)
commitae05de3e9b2e9868216e5168e50dfcb5074684cb
treeb7d31b6ed37b83b84c232641329fb4d99799d34c
parent8e1737097002df71ac1212a41e3deb87eb47d9f7
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>
src/common/options.cc
src/osd/PG.cc