/[base]
ViewVC logotype

Revision 361562


Jump to revision: Previous Next
Author: asomers
Date: Wed May 27 19:13:26 2020 UTC (4 years, 1 month ago)
Changed paths: 1
Log Message:
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
MFC after:	2 weeks
Sponsored by:	Axcient
Differential Revision:	https://reviews.freebsd.org/D24697


Changed paths

Path Details
Directoryhead/sys/geom/eli/g_eli.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27