Commit 3d0c24cd authored by adam radford's avatar adam radford Committed by James Bottomley

[SCSI] megaraid_sas: Return leaked MPT frames to MPT frame pool

The following patch for megaraid_sas will return leaked MPT frames from any
polled DCMD's that timeout to the MPT frame pool.
Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent c77a9bd8
...@@ -2435,11 +2435,14 @@ int megasas_reset_fusion(struct Scsi_Host *shost) ...@@ -2435,11 +2435,14 @@ int megasas_reset_fusion(struct Scsi_Host *shost)
instance, instance,
cmd_mfi->context.smid cmd_mfi->context.smid
-1); -1);
if (!req_desc) if (!req_desc) {
printk(KERN_WARNING printk(KERN_WARNING
"req_desc NULL" "req_desc NULL"
"\n"); "\n");
else { /* Return leaked MPT
frame */
megasas_return_cmd_fusion(instance, cmd_fusion);
} else {
instance->instancet-> instance->instancet->
fire_cmd(instance, fire_cmd(instance,
req_desc-> req_desc->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment