Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1337160 > unrolled thread

[PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.

Started bySuganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>
First post2016-02-18 09:50 +0100
Last post2016-02-18 14:20 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value. Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com> - 2016-02-18 09:50 +0100
    Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to  allocate with different value. Tomas Henzl <thenzl@redhat.com> - 2016-02-18 14:00 +0100
      Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to  allocate with different value. Johannes Thumshirn <jthumshirn@suse.de> - 2016-02-18 14:20 +0100

#1337160 — [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.

FromSuganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>
Date2016-02-18 09:50 +0100
Subject[PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
Message-ID<r3srE-2Xh-23@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1337335 — Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.

FromTomas Henzl <thenzl@redhat.com>
Date2016-02-18 14:00 +0100
SubjectRe: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
Message-ID<r3wlC-5Cm-25@gated-at.bofh.it>
In reply to#1337160
On 18.2.2016 09:39, Suganath Prabu Subramani wrote:
> 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;
>  	}
>  

Reviewed-by: Tomas Henzl <thenzl@redhat.com>

[toc] | [prev] | [next] | [standalone]


#1337341 — Re: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.

FromJohannes Thumshirn <jthumshirn@suse.de>
Date2016-02-18 14:20 +0100
SubjectRe: [PATCH v2 1/2] mpt3sas: Free memory pools before retrying to allocate with different value.
Message-ID<r3wEW-626-1@gated-at.bofh.it>
In reply to#1337335
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 <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;
> >  	}
> >  
> 
> Reviewed-by: Tomas Henzl <thenzl@redhat.com>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
-- 
Johannes Thumshirn                                          Storage
jthumshirn@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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web