Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
> "Suganath" == Suganath Prabu Subramani >writes: Suganath> Deallocate resources before reallocating of the same in Suganath> retry_allocation path of _base_allocate_memory_pools() Both patches applied to 4.6/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
On Thu, Feb 18, 2016 at 01:54:02PM +0100, Tomas Henzl wrote: > On 18.2.2016 09:39, Suganath Prabu Subramani wrote: > > From: Suganath prabu Subramani> > > > Deallocate resources before reallocating of the same in retry_allocation > > path of _base_allocate_memory_pools() > > > > Signed-off-by: Suganath prabu Subramani > > > > Signed-off-by: Chaitra P B > > --- > > 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..5f2 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; > > } > > > > Reviewed-by: Tomas Henzl > > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
On 18.2.2016 09:39, Suganath Prabu Subramani wrote: > From: Suganath prabu Subramani> > Deallocate resources before reallocating of the same in retry_allocation > path of _base_allocate_memory_pools() > > Signed-off-by: Suganath prabu Subramani > > Signed-off-by: Chaitra P B > --- > 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..5f2 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; > } > Reviewed-by: Tomas Henzl -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
From: Suganath prabu SubramaniDeallocate resources before reallocating of the same in retry_allocation path of _base_allocate_memory_pools() Signed-off-by: Suganath prabu Subramani Signed-off-by: Chaitra P B --- 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..5f2 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 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html