[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: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
c77a9bd8e0
commit
3d0c24cd9b
1 changed files with 5 additions and 2 deletions
|
@ -2435,11 +2435,14 @@ int megasas_reset_fusion(struct Scsi_Host *shost)
|
|||
instance,
|
||||
cmd_mfi->context.smid
|
||||
-1);
|
||||
if (!req_desc)
|
||||
if (!req_desc) {
|
||||
printk(KERN_WARNING
|
||||
"req_desc NULL"
|
||||
"\n");
|
||||
else {
|
||||
/* Return leaked MPT
|
||||
frame */
|
||||
megasas_return_cmd_fusion(instance, cmd_fusion);
|
||||
} else {
|
||||
instance->instancet->
|
||||
fire_cmd(instance,
|
||||
req_desc->
|
||||
|
|
Loading…
Reference in a new issue