mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
26126 panic system rather than corrupting pool if we hit bug 26100
References: delphix/delphix-os@931c8aaab7 Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1650
This commit is contained in:
committed by
Brian Behlendorf
parent
2517c8ee08
commit
78e2739d3c
@@ -1334,6 +1334,9 @@ dsl_scan_free_should_pause(dsl_scan_t *scn)
|
||||
{
|
||||
uint64_t elapsed_nanosecs;
|
||||
|
||||
if (zfs_recover)
|
||||
return (B_FALSE);
|
||||
|
||||
elapsed_nanosecs = gethrtime() - scn->scn_sync_start_time;
|
||||
return (elapsed_nanosecs / NANOSEC > zfs_txg_timeout ||
|
||||
(NSEC2MSEC(elapsed_nanosecs) > zfs_free_min_time_ms &&
|
||||
|
||||
Reference in New Issue
Block a user