[PATCH] scsi_dh_alua: Enable STPG for unavailable ports

2012-08-24 Thread Bart Van Assche
A quote from SPC-4: While in the unavailable primary target port asymmetric access state, the device server shall support those of the following commands that it supports while in the active/optimized state: [ ... ] d) SET TARGET PORT GROUPS; [ ... ]. Hence enable sending STPG to a target port

[PATCH] megaraid_sas: combine kmalloc+memset into kzalloc

2012-08-24 Thread Fengguang Wu
Use kzalloc rather than kmalloc followed by memset with 0. Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Signed-off-by: Fengguang Wu fengguang...@intel.com --- drivers/scsi/megaraid/megaraid_sas_fusion.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) ---

Re: [PATCH] megaraid_sas: combine kmalloc+memset into kzalloc

2012-08-24 Thread adam radford
On Fri, Aug 24, 2012 at 8:27 AM, Fengguang Wu fengguang...@intel.com wrote: Use kzalloc rather than kmalloc followed by memset with 0. Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Signed-off-by: Fengguang Wu fengguang...@intel.com ---

Re: [PATCH] scsi_dh_alua: Enable STPG for unavailable ports

2012-08-24 Thread Michael Christie
On Aug 24, 2012, at 4:08 AM, Bart Van Assche bvanass...@acm.org wrote: diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c index 08d80a6..a05d469 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++

Re: [PATCH 0/8] csiostor: Chelsio FCoE offload driver submission

2012-08-24 Thread David Miller
From: Naresh Kumar Inna nar...@chelsio.com Date: Fri, 24 Aug 2012 03:57:45 +0530 This is the initial submission of the Chelsio FCoE offload driver (csiostor) to the upstream kernel. This driver currently supports FCoE offload functionality over Chelsio T4-based 10Gb Converged Network Adapters.

[RESEND PATCH] [SCSI] mpt2sas: fix double mutex lock in NON_BLOCKING state

2012-08-24 Thread Alexey Khoroshilov
If state is NON_BLOCKING and mutex_trylock is succeed, the control flow goes to mutex_lock_interruptible() that is a deadlock. Found by Linux Driver Verification project (linuxtesting.org). Acked-by: Nandigama, Nagalakshmi nagalakshmi.nandig...@lsi.com Signed-off-by: Alexey Khoroshilov

Re: [PATCH 5/8] csiostor: Chelsio FCoE offload driver submission (sources part 5).

2012-08-24 Thread Naresh Kumar Inna
On 8/24/2012 1:18 AM, Nicholas A. Bellinger wrote: On Fri, 2012-08-24 at 03:57 +0530, Naresh Kumar Inna wrote: This patch contains code to implement the interrupt handling and the fast path I/O functionality. The interrupt handling includes allocation of MSIX vectors, registering and

Re: [PATCH 5/8] csiostor: Chelsio FCoE offload driver submission (sources part 5).

2012-08-24 Thread Joe Perches
On Fri, 2012-08-24 at 23:10 +0530, Naresh Kumar Inna wrote: Is there a TRUE/FALSE define in a standard header file? include/linux/stddef.h: enum { false = 0, true= 1 }; I see a lot of kernel code defining their own TRUE/FALSE. Those should be changed eventually. -- To

Re: [PATCH 6/8] csiostor: Chelsio FCoE offload driver submission (headers part 1).

2012-08-24 Thread Naresh Kumar Inna
On 8/24/2012 1:28 AM, Nicholas A. Bellinger wrote: On Fri, 2012-08-24 at 03:57 +0530, Naresh Kumar Inna wrote: This patch contains the first set of the header files for csiostor driver. Signed-off-by: Naresh Kumar Inna nar...@chelsio.com --- drivers/scsi/csiostor/csio_defs.h | 143

Re: [PATCH 6/8] csiostor: Chelsio FCoE offload driver submission (headers part 1).

2012-08-24 Thread Naresh Kumar Inna
On 8/23/2012 11:45 PM, Love, Robert W wrote: On 8/23/2012 3:27 PM, Naresh Kumar Inna wrote: This patch contains the first set of the header files for csiostor driver. Signed-off-by: Naresh Kumar Inna nar...@chelsio.com --- drivers/scsi/csiostor/csio_defs.h | 143 ++

Re: [PATCH 0/8] csiostor: Chelsio FCoE offload driver submission

2012-08-24 Thread Naresh Kumar Inna
On 8/24/2012 10:34 PM, David Miller wrote: From: Naresh Kumar Inna nar...@chelsio.com Date: Fri, 24 Aug 2012 03:57:45 +0530 This is the initial submission of the Chelsio FCoE offload driver (csiostor) to the upstream kernel. This driver currently supports FCoE offload functionality over

Re: [PATCH 5/8] csiostor: Chelsio FCoE offload driver submission (sources part 5).

2012-08-24 Thread Naresh Kumar Inna
On 8/24/2012 11:57 PM, Joe Perches wrote: On Fri, 2012-08-24 at 23:10 +0530, Naresh Kumar Inna wrote: Is there a TRUE/FALSE define in a standard header file? include/linux/stddef.h: enum { false = 0, true= 1 }; I see a lot of kernel code defining their own

Re: [PATCH 0/8] csiostor: Chelsio FCoE offload driver submission

2012-08-24 Thread David Miller
From: Naresh Kumar Inna nar...@chelsio.com Date: Sat, 25 Aug 2012 00:34:35 +0530 Thanks for reviewing. Is your comment with respect to any particular module parameter[s] in this driver or all of them? All of them. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the

Re: [PATCH 5/8] csiostor: Chelsio FCoE offload driver submission (sources part 5).

2012-08-24 Thread Nicholas A. Bellinger
On Fri, 2012-08-24 at 23:10 +0530, Naresh Kumar Inna wrote: On 8/24/2012 1:18 AM, Nicholas A. Bellinger wrote: On Fri, 2012-08-24 at 03:57 +0530, Naresh Kumar Inna wrote: This patch contains code to implement the interrupt handling and the fast path I/O functionality. The interrupt handling

Re: [PATCH 6/8] csiostor: Chelsio FCoE offload driver submission (headers part 1).

2012-08-24 Thread Nicholas A. Bellinger
On Sat, 2012-08-25 at 00:06 +0530, Naresh Kumar Inna wrote: On 8/24/2012 1:28 AM, Nicholas A. Bellinger wrote: On Fri, 2012-08-24 at 03:57 +0530, Naresh Kumar Inna wrote: This patch contains the first set of the header files for csiostor driver. Signed-off-by: Naresh Kumar Inna

Re: [PATCH 0/8] csiostor: Chelsio FCoE offload driver submission

2012-08-24 Thread Paul Gortmaker
On Thu, Aug 23, 2012 at 6:27 PM, Naresh Kumar Inna nar...@chelsio.com wrote: This is the initial submission of the Chelsio FCoE offload driver (csiostor) to the upstream kernel. This driver currently supports FCoE offload functionality over Chelsio T4-based 10Gb Converged Network Adapters.

[PATCH 3/3] ibmvfc: Driver version 1.0.10

2012-08-24 Thread Brian King
Bump driver version. Signed-off-by: Brian King brk...@linux.vnet.ibm.com --- drivers/scsi/ibmvscsi/ibmvfc.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/scsi/ibmvscsi/ibmvfc.h~ibmvfc_version_1_0_10 drivers/scsi/ibmvscsi/ibmvfc.h ---

[PATCH 2/3] ibmvfc: Ignore fabric RSCNs when link is dead

2012-08-24 Thread Brian King
This fixes an issues seen where a Fabric RSCN event was received while the link was down, which resulted in repeated attempts to log back into the fabric, which then failed, resulting in the ibmvfc driver taking the host offline. Fix this by delaying taking any action regarding the fabric RSCN

[PATCH 1/3] ibmvfc: Fix double completion on abort timeout

2012-08-24 Thread Brian King
If an abort request times out to the virtual fibre channel adapter, the ibmvfc driver will kick off a reset of the adapter. This patch ensures we wait for the both the abort request and the request being aborted to be completed prior to exiting the eh_abort handler. This fixes a bug where the

Re: [PATCH 0/8] csiostor: Chelsio FCoE offload driver submission

2012-08-24 Thread James Bottomley
On Fri, 2012-08-24 at 17:45 -0400, Paul Gortmaker wrote: On Thu, Aug 23, 2012 at 6:27 PM, Naresh Kumar Inna nar...@chelsio.com wrote: This is the initial submission of the Chelsio FCoE offload driver (csiostor) to the upstream kernel. This driver currently supports FCoE offload