mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not retry failed async event requests.
Sponsored by: Intel MFC after: 3 days
This commit is contained in:
parent
eb32b874f6
commit
ec526ea90b
1 changed files with 5 additions and 5 deletions
|
|
@ -649,12 +649,12 @@ nvme_ctrlr_async_event_cb(void *arg, const struct nvme_completion *cpl)
|
|||
{
|
||||
struct nvme_async_event_request *aer = arg;
|
||||
|
||||
if (cpl->status.sc == NVME_SC_ABORTED_SQ_DELETION) {
|
||||
if (nvme_completion_is_error(cpl)) {
|
||||
/*
|
||||
* This is simulated when controller is being shut down, to
|
||||
* effectively abort outstanding asynchronous event requests
|
||||
* and make sure all memory is freed. Do not repost the
|
||||
* request in this case.
|
||||
* Do not retry failed async event requests. This avoids
|
||||
* infinite loops where a new async event request is submitted
|
||||
* to replace the one just failed, only to fail again and
|
||||
* perpetuate the loop.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue