HomeFreeBSD

MFC r361562:

Description

MFC r361562:

geli: fix a livelock during panic

During any kind of shutdown, kern_reboot calls geli's pre_sync event hook,
which tries to destroy all unused geli devices. But during a panic, geli
can't destroy any devices, because the scheduler is stopped, so it can't
switch threads. A livelock results, and the system never dumps core.

This commit fixes the problem by refusing to destroy any devices during
panic, used or otherwise.

PR: 246207
Reviewed by: jhb
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D24697

Details

Provenance
asomersAuthored on
Reviewer
jhb
Differential Revision
D24697: geli: fix a livelock during panic
Parents
rS362117: MFC r361439:
Branches
Unknown
Tags
Unknown