On 15/12/15 08:07, Uma Krishnan wrote:
From: Manoj Kumar <manoj@xxxxxxxxxxxxxxxxxx> After a few iterations of resetting the card, either during EEH recovery, or a host_reset the following is seen in the logs. cxlflash 0008:00: cxlflash_queuecommand: could not get a free command At every reset of the card, the commands that are outstanding are being leaked. No effort is being made to reap these commands. A few more resets later, the above error message floods the logs and the card is rendered totally unusable as no free commands are available. Iterated through the 'cmd' queue and printed out the 'free' counter and found that on each reset certain commands were in-use and stayed in-use through subsequent resets. To resolve this issue, when the card is reset, reap all the commands that are active/outstanding. Signed-off-by: Manoj N. Kumar <manoj@xxxxxxxxxxxxxxxxxx> Acked-by: Matthew R. Ochs <mrochs@xxxxxxxxxxxxxxxxxx>
Looks reasonable. Reviewed-by: Andrew Donnellan <andrew.donnellan@xxxxxxxxxxx> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnellan@xxxxxxxxxxx Australia Development Lab, Canberra +61 2 6201 8874 (work) IBM Australia Limited -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html