]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ioat(4): Set __result_use_check on ioat_acquire_reserve
authorcem <cem@FreeBSD.org>
Thu, 17 Jan 2019 23:21:02 +0000 (23:21 +0000)
committercem <cem@FreeBSD.org>
Thu, 17 Jan 2019 23:21:02 +0000 (23:21 +0000)
commit301370aa3e72f09954163c63c6cbf474e34b7331
tree9ea0894d30737b7aadc63931f05bcc78e46145a9
parente9b9f14056349028ca14e521e2913ffbbe212310
ioat(4): Set __result_use_check on ioat_acquire_reserve

Even M_WAITOK callers must check for failure.  For example, if the device is
quiescing, either due to automatic error-recovery induced reset, or due to
administrative detach, the routine will return ENXIO and the acquire
reference will not be held.  So, there is no mode in which it is safe to
assume the routine succeeds without checking.

Sponsored by: Dell EMC Isilon
sys/dev/ioat/ioat.h