James/linux-scsi,

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 <aradf...@gmail.com>

diff -Naur scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fusion.c
scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fusion.c
--- scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fusion.c
2014-03-09 21:31:26.710918424 -0700
+++ scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fusion.c
2014-03-09 21:45:22.598012009 -0700
@@ -2432,11 +2432,14 @@
  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->

Attachment: megaraid_sas.patch3
Description: Binary data

Reply via email to