Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
@ 2016-02-18  8:39 Suganath Prabu Subramani
  2016-02-18  8:39 ` [PATCH v2 2/2] Updating maintainers list for MPT FUSION DRIVERS Suganath Prabu Subramani
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Suganath Prabu Subramani @ 2016-02-18  8:39 UTC (permalink / raw)
  To: JBottomley, jejb, hch
  Cc: martin.petersen, linux-scsi, Sathya.Prakash, kashyap.desai,
	krishnaraddi.mankani, linux-kernel, suganath-prabu.subramani,
	chaitra.basappa, sreekanth.reddy, Suganath prabu Subramani

From: Suganath prabu Subramani <suganath-prabu.subramani@avagotech.com>

Deallocate resources before reallocating of the same in retry_allocation
path of _base_allocate_memory_pools()

Signed-off-by: Suganath prabu Subramani <suganath-prabu.subramani@avagotech.com>
Signed-off-by: Chaitra P B <chaitra.basappa@broadcom.com>
---
 drivers/scsi/mpt3sas/mpt3sas_base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index afdb13a..5bbbbf2 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -3414,6 +3414,7 @@ _base_allocate_memory_pools(struct MPT3SAS_ADAPTER *ioc,  int sleep_flag)
 			goto out;
 		retry_sz = 64;
 		ioc->hba_queue_depth -= retry_sz;
+		_base_release_memory_pools(ioc);
 		goto retry_allocation;
 	}
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-23 22:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18  8:39 [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value Suganath Prabu Subramani
2016-02-18  8:39 ` [PATCH v2 2/2] Updating maintainers list for MPT FUSION DRIVERS Suganath Prabu Subramani
2016-02-18 12:54 ` [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value Tomas Henzl
2016-02-18 13:10   ` Johannes Thumshirn
2016-02-23 22:38 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox