主权项 |
1. A method comprising:
receiving, at a storage controller, an indication of an event, wherein the indication of the event corresponds to a first severity; determining that the event is associated with a first stream of commands, wherein the first stream of commands is a plurality of commands sharing a same stream indicator; determining whether the indication of the event is the first indication of the event received by the storage controller; in response to determining that the indication of the event is the first indication of the event received by the storage controller, setting a maximum allowed count of in-flight commands to be less than a current count of in-flight commands, in response to determining that the indication of the event is not the first indication of the event received by the storage controller, determining that the first severity is greater than a second severity, wherein the second severity corresponds to a previously received indication of the event; and in response to determining that the first severity is greater than the second severity, decreasing the maximum allowed count of in-flight commands. |