]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
safexcel: Handle command/result descriptor exhaustion gracefully
authorMark Johnston <markj@FreeBSD.org>
Mon, 18 Jan 2021 22:07:56 +0000 (17:07 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 25 Jan 2021 14:20:01 +0000 (09:20 -0500)
commit804d63c0ee8f56dfac29e1fe5879740a3549d0cb
tree0ba046b5cd37a6fb408113820c161a40f9e103ce
parent24ee73604483152ba2222ff9e5e3cf61047eb1c3
safexcel: Handle command/result descriptor exhaustion gracefully

Rather than returning a hard error in this case, return ERESTART so that
upper layers get a chance to retry the request (or drop it, depending on
the desired policy).

This case is hard to hit due to the somewhat low bound on queued
requests, but that will no longer be true after an upcoming change.

Sponsored by: Rubicon Communications, LLC (Netgate)

(cherry picked from commit b7e27af36b7df05f4b6cdc706750413f3a048640)
sys/dev/safexcel/safexcel.c