[PATCH 3/5] megaraid_sas: Return leaked MPT frames to MPT frame pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <aradford@xxxxxxxxx>

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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux