freebsd-skq/sys/ufs
Konstantin Belousov 7b05b8a29c Do not leak transient ENOLCK error from flush_newblk_dep() loop.
The buffer lock is retried on failed LK_SLEEPFAIL attempt, and error
from the failed attempt is irrelevant.  But since there is path after
retry which does not clear error, it is possible to return spurious
error from the function.

The issue resulted in a spurious failure of softdep_sync_buf(),
causing further spurious failure of ffs_sync().

In collaboration with:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2016-09-08 12:08:54 +00:00
..
ffs Do not leak transient ENOLCK error from flush_newblk_dep() loop. 2016-09-08 12:08:54 +00:00
ufs When logging unlikely UFS_TRUNCATE() failure in ufs_direnter(), 2016-09-08 12:08:08 +00:00