Skip to content

Commit

Permalink
Upstream: Test for NULL vd
Browse files Browse the repository at this point in the history
It seems we managed to get a deadman triggered during export?

 : 0xffffff8004ebda40 mach_kernel : _return_from_trap + 0xe0
 : 0xffffff7f8942bbbf org.openzfsonosx.zfs : _vdev_deadman + 0x1f
 : 0xffffff7f8941149a org.openzfsonosx.zfs : _spa_deadman + 0xca
 : 0xffffff7f896a6246 org.openzfsonosx.zfs : _taskq_thread + 0x4a6

Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Jun 30, 2021
1 parent 4cd5b14 commit 3b2101b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/spa_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ spa_deadman(void *arg)
zfs_dbgmsg("slow spa_sync: started %llu seconds ago, calls %llu",
(gethrtime() - spa->spa_sync_starttime) / NANOSEC,
(u_longlong_t)++spa->spa_deadman_calls);
if (zfs_deadman_enabled)
if (zfs_deadman_enabled && spa->spa_root_vdev != NULL)
vdev_deadman(spa->spa_root_vdev, FTAG);

spa->spa_deadman_tqid = taskq_dispatch_delay(system_delay_taskq,
Expand Down

0 comments on commit 3b2101b

Please sign in to comment.