freebsd-dev/sys/ufs
Robert Wing 0455cc7104 ffs_mount(): return early if namei() fails to lookup disk device
With soft updates enabled, an INVARIANTS panic is hit in ffs_unmount().

The problem occurs in ffs_mount() when upgrading a mount from ro->rw.
During a mount update, the soft update code gets set up but doesn't get
cleaned up if namei() fails when looking up the disk device.

Avoid this scenario by looking up the disk device first and bail early
if the namei() lookup fails.

PR:             256511
MFC After:      2 weeks
Reviewed by:	mckusick, kib
Differential Revision:	https://reviews.freebsd.org/D30870
2022-03-07 10:48:44 -09:00
..
ffs ffs_mount(): return early if namei() fails to lookup disk device 2022-03-07 10:48:44 -09:00
ufs ufs: be more persistent with finishing some operations 2022-01-31 04:46:21 +02:00