]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid completing I/O when dumping core after a panic.
authormarkj <markj@FreeBSD.org>
Fri, 1 Jun 2018 23:49:32 +0000 (23:49 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 1 Jun 2018 23:49:32 +0000 (23:49 +0000)
commit746978a0655611206543fdc04a589aed881fcc02
tree9793ee7daa459882f00190fc569c2c0529c7efb0
parent84011a1282946340bca4ed6a34638853887ff2ef
Avoid completing I/O when dumping core after a panic.

Filesystem or pager completion callbacks are generally non-functional
after a panic and may trigger deadlocks if invoked in this context
(e.g., by attempting to destroying a buffer mapping).  To avoid this
situation, short-circuit I/O completion in biodone().

Reviewed by: imp
Discussed with: mav
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D15592
sys/kern/vfs_bio.c