Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-11 Thread Nicholas A. Bellinger
.pdl; kernel-team; Nicholas Bellinger; Chaitra > > > > Basappa > > > > Subject: Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix > > > > unsafe list usage > > > > > > > > On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinge

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-11 Thread James Bottomley
Tuesday, September 08, 2015 5:26 PM > > > To: Nicholas A. Bellinger > > > Cc: linux-scsi; linux-kernel; James Bottomley; Calvin Owens; Christoph > > > Hellwig; MPT-FusionLinux.pdl; kernel-team; Nicholas Bellinger; Chaitra > > > Basappa > > > Subject: Re:

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-11 Thread Nicholas A. Bellinger
c: linux-scsi; linux-kernel; James Bottomley; Calvin Owens; Christoph > > Hellwig; MPT-FusionLinux.pdl; kernel-team; Nicholas Bellinger; Chaitra > > Basappa > > Subject: Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix > > unsafe list usage > > &

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-11 Thread Nicholas A. Bellinger
c: linux-scsi; linux-kernel; James Bottomley; Calvin Owens; Christoph > > Hellwig; MPT-FusionLinux.pdl; kernel-team; Nicholas Bellinger; Chaitra > > Basappa > > Subject: Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix > > unsafe list usage > > >

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-11 Thread James Bottomley
Tuesday, September 08, 2015 5:26 PM > > > To: Nicholas A. Bellinger > > > Cc: linux-scsi; linux-kernel; James Bottomley; Calvin Owens; Christoph > > > Hellwig; MPT-FusionLinux.pdl; kernel-team; Nicholas Bellinger; Chaitra > > > Basappa > > > Subject: Re:

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-11 Thread Nicholas A. Bellinger
.pdl; kernel-team; Nicholas Bellinger; Chaitra > > > > Basappa > > > > Subject: Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix > > > > unsafe list usage > > > > > > > > On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinge

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-09 Thread Nicholas A. Bellinger
FusionLinux.pdl; kernel-team; Nicholas Bellinger; Chaitra > Basappa > Subject: Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix > unsafe list usage > > On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger > wrote: > > From: Nicholas Bellinger > > >

RE: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-09 Thread Chaitra Basappa
-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > These objects can be referenced concurrently throughout the driver, we > need a way to make sure threads can't delete t

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-09 Thread Nicholas A. Bellinger
Hi Sreekanth, On Tue, 2015-09-08 at 17:25 +0530, Sreekanth Reddy wrote: > On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger > wrote: > > From: Nicholas Bellinger > > > > These objects can be referenced concurrently throughout the driver, we > > need a way to make sure threads can't delete

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-09 Thread Nicholas A. Bellinger
Hi Sreekanth, On Tue, 2015-09-08 at 17:25 +0530, Sreekanth Reddy wrote: > On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger > wrote: > > From: Nicholas Bellinger > > > > These objects can be referenced concurrently throughout the driver, we > >

RE: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-09 Thread Chaitra Basappa
-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger <n...@daterainc.com> wrote: > From: Nicholas Bellinger <n...@linux-iscsi.org> > > These objects can be referenced concurrently throughout the dr

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-09 Thread Nicholas A. Bellinger
FusionLinux.pdl; kernel-team; Nicholas Bellinger; Chaitra > Basappa > Subject: Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix > unsafe list usage > > On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger <n...@daterainc.com> > wrote: > > F

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-08 Thread Sreekanth Reddy
On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > These objects can be referenced concurrently throughout the driver, we > need a way to make sure threads can't delete them out from under > each other. This patch adds the refcount, and refactors the

Re: [PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-09-08 Thread Sreekanth Reddy
On Sun, Aug 30, 2015 at 1:24 PM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > These objects can be referenced concurrently throughout the driver, we > need a way to make sure threads can't delete them out from under > each other. This

[PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-08-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger These objects can be referenced concurrently throughout the driver, we need a way to make sure threads can't delete them out from under each other. This patch adds the refcount, and refactors the code to use it. Additionally, we cannot iterate over the sas_device_list

[PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-08-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org These objects can be referenced concurrently throughout the driver, we need a way to make sure threads can't delete them out from under each other. This patch adds the refcount, and refactors the code to use it. Additionally, we cannot iterate over