[PATCH 2/2] SCSI: Fix NULL pointer dereference in RTPM of block layer

2015-09-09 Thread Ken Xue
SCSI: Fix NULL pointer dereference in RTPM of block layer The routines in scsi_pm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean that the device's driver has asked the block layer to handle the runtime power management (by calling blk_pm_runtime_init(), which

[PATCH 1/2]Revert "SCSI: Fix NULL pointer dereference in runtime PM"

2015-09-09 Thread Ken Xue
Revert "SCSI: Fix NULL pointer dereference in runtime PM" This reverts commit 49718f0fb8c9 ("SCSI: Fix NULL pointer dereference in runtime PM") The old commit may lead to a issue that blk_{pre|post}_runtime_suspend and blk_{pre|post}_runtime_resume can not be called in pairs. Take sr device as e

Re: [PATCH 1/1] Update scsi hosts to use idr for host number mgmt

2015-09-09 Thread Lee Duncan
On 09/06/2015 08:16 AM, Lee Duncan wrote: > On 09/06/2015 12:34 AM, Sagi Grimberg wrote: >> On 9/5/2015 11:44 PM, Lee Duncan wrote: >>> Each Scsi_host instance gets a host number starting >>> at 0, but this was implemented with an atomic integer, >>> and rollover wasn't considered. Another problem

Re: [PATCH] ibmvsci: make parameters max_id and max_channel read-only

2015-09-09 Thread David Gibson
On Wed, 9 Sep 2015 17:21:00 +0200 Laurent Vivier wrote: > The value of the parameter is never re-read by the driver, > so a new value is ignored. Let know the user he > can't modify it by removing writable attribute. > > Signed-off-by: Laurent Vivier Reviewed-by: David Gibson -- David Gibs

Re: [PATCH] target/qla2xxx: Honor max_data_sg_nents I/O transfer limit

2015-09-09 Thread Nicholas A. Bellinger
Hi Arun & Co, On Thu, 2015-08-20 at 16:17 -0700, Nicholas A. Bellinger wrote: > On Wed, 2015-08-19 at 17:48 -0700, Arun Easi wrote: > > Hi nab, > > > > On Thu, 13 Aug 2015, 1:45am -0700, Nicholas A. Bellinger wrote: > > > > > From: Nicholas Bellinger > > > > > > Hi Arun, Roland & Co, > > > > >

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

2015-09-09 Thread Nicholas A. Bellinger
On Wed, 2015-09-09 at 19:59 +0530, Chaitra Basappa wrote: > From: Sreekanth Reddy [mailto:sreekanth.re...@avagotech.com] > Sent: 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; k

Re: [Bugfix] PCI, x86: Correctly allocate IRQs for PCI devices managed by non-PCI drivers

2015-09-09 Thread Bjorn Helgaas
On Tue, Sep 8, 2015 at 11:49 AM, Jiang Liu wrote: > Hi Bjorn, > We have used another draft version to fix this issue by changing > eata driver as below. But that needs to export pcibios_alloc_irq. And > I'm not sure whether there are other drivers having the same behavior. > If we think it

Re: [Bugfix] PCI, x86: Correctly allocate IRQs for PCI devices managed by non-PCI drivers

2015-09-09 Thread Arthur Marsh
Jiang Liu wrote on 08/09/15 16:56: Commit 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq() and pcibios_free_irq()") changes the way to allocate PCI legacy IRQ for PCI devices on x86 platforms. Instead of allocating PCI legacy IRQs when pcibios_enable_device() gets called, now pcibios_allo

[PATCH 1/1] cxgb4i: Increased the value of MAX_IMM_TX_PKT_LEN from 128 to 256 bytes

2015-09-09 Thread Karen Xie
This helps improving the latency of small packets. Signed-off-by: Rakesh Ranjan Signed-off-by: Karen Xie --- drivers/scsi/cxgbi/cxgb4i/cxgb4i.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c ind

Re: [PATCH]SCSI:Refine the way to fix NULL pointer dereference in runtime PM

2015-09-09 Thread Alan Stern
On Wed, 9 Sep 2015, Huang Rui wrote: > On Wed, Sep 09, 2015 at 04:40:07PM +0800, Ken Xue wrote: > > On Wed, 2015-09-09 at 16:30 +0800, Huang Rui wrote: > > > On Wed, Sep 09, 2015 at 03:02:11PM +0800, Ken Xue wrote: > > > > From 844ebfcecad7ddaf7206e0474c600b0146b4ef21 Mon Sep 17 00:00:00 2001 > >

Re: [PATCH] ibmvsci: make parameters max_id and max_channel read-only

2015-09-09 Thread Brian King
On 09/09/2015 10:21 AM, Laurent Vivier wrote: > The value of the parameter is never re-read by the driver, > so a new value is ignored. Let know the user he > can't modify it by removing writable attribute. Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center -- To

[PATCH] ibmvsci: make parameters max_id and max_channel read-only

2015-09-09 Thread Laurent Vivier
The value of the parameter is never re-read by the driver, so a new value is ignored. Let know the user he can't modify it by removing writable attribute. Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dr

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

2015-09-09 Thread Chaitra Basappa
From: Sreekanth Reddy [mailto:sreekanth.re...@avagotech.com] Sent: 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: [PATCH-

RE: [PATCH V8 9/9] aacraid: Update driver version

2015-09-09 Thread Mahesh Rajashekhara
Hi James, Please let me know the status of V8 patchset. Thanks, Mahesh -Original Message- From: Mahesh Rajashekhara [mailto:mahesh.rajashekh...@pmcs.com] Sent: Friday, August 28, 2015 4:09 PM To: jbottom...@parallels.com; linux-scsi@vger.kernel.org Cc: the...@redhat.com; Murthy Bhat; Ka

[PATCH 1/1] SCSI:Fix rpm_status of request_queue in S3 resume of SCSI device

2015-09-09 Thread Ken Xue
>From d0b7698dda596831aa6a7efca1075a231f1ac5db Mon Sep 17 00:00:00 2001 From: Ken Xue Date: Wed, 9 Sep 2015 17:36:59 +0800 Subject: [PATCH] SCSI:Fix rpm_status of request_queue in S3 resume of SCSI device rpm_status of the request_queue is set to be RPM_SUSPENDED in runtime suspend before S3. Bu

Re: [PATCH]SCSI:Refine the way to fix NULL pointer dereference in runtime PM

2015-09-09 Thread Huang Rui
On Wed, Sep 09, 2015 at 03:02:11PM +0800, Ken Xue wrote: > From 844ebfcecad7ddaf7206e0474c600b0146b4ef21 Mon Sep 17 00:00:00 2001 > From: Ken Xue > Date: Wed, 9 Sep 2015 14:55:21 +0800 > Subject: [PATCH] SCSI:Refine the way to fix NULL pointer dereference in > runtime PM > > There was a patch ab

Re: [PATCH]SCSI:Refine the way to fix NULL pointer dereference in runtime PM

2015-09-09 Thread Huang Rui
On Wed, Sep 09, 2015 at 04:40:07PM +0800, Ken Xue wrote: > On Wed, 2015-09-09 at 16:30 +0800, Huang Rui wrote: > > On Wed, Sep 09, 2015 at 03:02:11PM +0800, Ken Xue wrote: > > > From 844ebfcecad7ddaf7206e0474c600b0146b4ef21 Mon Sep 17 00:00:00 2001 > > > From: Ken Xue > > > Date: Wed, 9 Sep 2015 1

Re: [PATCH]SCSI:Refine the way to fix NULL pointer dereference in runtime PM

2015-09-09 Thread Ken Xue
On Wed, 2015-09-09 at 16:30 +0800, Huang Rui wrote: > On Wed, Sep 09, 2015 at 03:02:11PM +0800, Ken Xue wrote: > > From 844ebfcecad7ddaf7206e0474c600b0146b4ef21 Mon Sep 17 00:00:00 2001 > > From: Ken Xue > > Date: Wed, 9 Sep 2015 14:55:21 +0800 > > Subject: [PATCH] SCSI:Refine the way to fix NULL

[PATCH]SCSI:Refine the way to fix NULL pointer dereference in runtime PM

2015-09-09 Thread Ken Xue
>From 844ebfcecad7ddaf7206e0474c600b0146b4ef21 Mon Sep 17 00:00:00 2001 From: Ken Xue Date: Wed, 9 Sep 2015 14:55:21 +0800 Subject: [PATCH] SCSI:Refine the way to fix NULL pointer dereference in runtime PM There was a patch about Bugzilla #101371. That patch introduced a possibility that can not

Re: [PATCH] target: Attach EXTENDED_COPY local I/O descriptors to xcopy_pt_sess

2015-09-09 Thread Nicholas A. Bellinger
On Sat, 2015-09-05 at 09:46 -0400, Alex Gorbachev wrote: > Tested-by: Alex Gorbachev Added your Tested-by to target-pending/for-next code. Thanks for verifying Alex! -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org Mo