r305609 mav Sept. 8, 2016, 1:03 p.m.
MFC after:	2 weeks
ViewVC
r305608 mav Sept. 8, 2016, 12:58 p.m.
MFC after:	2 weeks
ViewVC
r305607 andrew Sept. 8, 2016, 12:53 p.m.
shouldn't normally be used.

Obtained from:	ABT Systems Ltd
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
ViewVC
r305606 avg Sept. 8, 2016, 12:43 p.m.
Otherwise we can fail to create an smbus child of intpm.

MFC after:	1 week
ViewVC
r305605 andrew Sept. 8, 2016, 12:39 p.m.
are currently handled.

Obtained from:	ABT Systems Ltd
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
ViewVC
r305604 avg Sept. 8, 2016, 12:27 p.m.
bus_generic_detach() fails when called from attach method
thus preventing further clean up actions.

MFC after:	1 week
ViewVC
r305603 avg Sept. 8, 2016, 12:24 p.m.
While there set a different device description for the controllers
found in various FCHs (Hudson, Bolton, CPU integrated).

MFC after:	1 week
ViewVC
r305602 avg Sept. 8, 2016, 12:12 p.m.
r305601 kib Sept. 8, 2016, 12:09 p.m.
truncation failed.

Doing so resulted in inconsistent state of the ufs dirhash with regard
to the actual directory inode state, and could lead to spurious ENOENT
errors for lookups of existing files in production kernels, or
assertion failures in the debugging kernels.

Change the logic of calling ufsdirhash_dirtrunc() to be same as in
ufs_direnter().  Execute UFS_TRUNCATE() first, log error, and only do
dirtrunc() if UFS_TRUNCATE() succeeded.

Note that the problem was exacerbated by the bug in the
flush_newblk_dep() function (see r305599), which caused in the spurios
errors from ffs_sync() and then ffs_truncate().

In collaboration with:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
ViewVC
r305600 avg Sept. 8, 2016, 12:09 p.m.
And place it into its own section.

MFC after:	1 week
ViewVC
r305599 kib Sept. 8, 2016, 12:08 p.m.
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
ViewVC
r305598 kib Sept. 8, 2016, 12:08 p.m.
include error code.

Reported and tested by:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
ViewVC
r305597 kib Sept. 8, 2016, 12:07 p.m.
This change is formally not needed, since i_endoff not used in all
code paths after the call to ufs_direnter(), and i_endoff is
recalculated by the next lookup.  But having the value correct makes
the reasoning about code simpler.

Reported and tested by:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
ViewVC
r305596 avg Sept. 8, 2016, 12:07 p.m.
MFC after:	1 week
ViewVC
r305595 kib Sept. 8, 2016, 12:06 p.m.
cleared since nothing prevents completion of the parallel quotaoff.
There is nothing to sync in this case, and no reason to panic.

Reported and tested by:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
ViewVC