]> granicus.if.org Git - zfs/commit
Fix divide-by-zero in mmp_delay_update()
authorOlaf Faaland <faaland1@llnl.gov>
Fri, 6 Apr 2018 20:29:11 +0000 (13:29 -0700)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:46:51 +0000 (02:46 -0700)
commit6b5cc49d81305b25b2d6a1348bf34f05dbd9a409
tree393a737f23c802bab650e61bdded260e7f14a9eb
parentef7a79488a498b430108a1d74647f57da9a78284
Fix divide-by-zero in mmp_delay_update()

vdev_count_leaves() in the denominator may return 0, caught by Coverity.
Introduced by

533ea04 Update mmp_delay on sync or skipped, failed write

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7391
module/zfs/mmp.c