[PATCH] dm mpath: do not fail path on -ENOSPC

2013-09-12 Thread Jun'ichi Nomura
Since ENOSPC is a target-side error, dm-mpath should just pass the error information to upper layer instead of retrying itself with path failover. Otherwise it will end up failing all paths down while path checkers find all paths ok. ENOSPC can now be returned from SCSI device after commit a9d6ceb

Re: [PATCH] dm mpath: do not fail path on -ENOSPC

2013-09-12 Thread Hannes Reinecke
On 09/13/2013 07:54 AM, Jun'ichi Nomura wrote: > Since ENOSPC is a target-side error, dm-mpath should just pass the error > information to upper layer instead of retrying itself with path failover. > Otherwise it will end up failing all paths down while path checkers find > all paths ok. > > ENOSP

[PATCH 18/22] be2iscsi: Fix log level for protocol specific logs

2013-09-12 Thread Jayamohan Kallickal
Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c | 11 --- drivers/scsi/be2iscsi/be_main.h |1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c inde

[PATCH 21/22] be2iscsi: Fix AER handling in driver

2013-09-12 Thread Jayamohan Kallickal
This patch fixes the lack of AER support Signed-off-by: Minh Tran Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_cmds.c |2 +- drivers/scsi/be2iscsi/be_iscsi.c | 68 ++-- drivers/scsi/be2iscsi/be_main.c | 220 +

[PATCH 20/22] be2iscsi: Invalidate WRB in Abort/Reset Path

2013-09-12 Thread Jayamohan Kallickal
When iSCSI stack invokes Abort or Reset handlers, the aborted tasks Invalid Bit in WRB needs to be set. Else FW will not be aware of the command invalidated which leads to BAD_WRB error posted by FW. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/b

[PATCH 17/22] be2iscsi: Fix MSIx creation for SKH-R adapter

2013-09-12 Thread Jayamohan Kallickal
The MSIx to be created for SKH-R adapter should be based on eq_count returned by get_fw_config. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c | 45 +-- drivers/scsi/be2iscsi/be_main.h |3 ++- driv

[PATCH 11/22] be2iscsi: Fix WRB_Q posting to support Dual Chute mode

2013-09-12 Thread Jayamohan Kallickal
Configuration parameters return number of CID each chute supports. The WRB_Q is created for the passed CID count. If both the Chute has iSCSI Protocol then WRB_Q creation is in a round robin mechanism. For BE-X family iSCSI protocol is loaded only on Chute - 1. Signed-off-by: John Soni Jose

[PATCH 19/22] be2iscsi: Fix Insufficient Buffer Error returned in MBX Completion

2013-09-12 Thread Jayamohan Kallickal
When MBX_Cmd completion happens with error code Insufficient Buffer, the MBX_Cmd is posted again with the new buffer size posted by FW. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_cmds.c | 20 ++--- drivers/scsi/be2iscsi/be_iscsi.c |

[PATCH 12/22] be2iscsi: Fix CID allocation/freeing to support Dual Chute Mode

2013-09-12 Thread Jayamohan Kallickal
Configuration parameters returns the number of connection that can be offloaded one each chute. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_iscsi.c | 54 ++- drivers/scsi/be2iscsi/be_main.c | 108 +++

[PATCH 16/22] be2iscsi: Display Port Identifier for each iSCSI function.

2013-09-12 Thread Jayamohan Kallickal
Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c |2 ++ drivers/scsi/be2iscsi/be_mgmt.c | 19 +++ drivers/scsi/be2iscsi/be_mgmt.h |3 +++ 3 files changed, 24 insertions(+) diff --git a/drivers/scsi/be2iscsi/be_main.c

[PATCH 14/22] be2iscsi: Fix chute cleanup during drivers unload.

2013-09-12 Thread Jayamohan Kallickal
This patch cleans up both chutes on unload Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c | 14 ++ drivers/scsi/be2iscsi/be_mgmt.c | 17 + 2 files changed, 23 insertions(+), 8 deletions(-) diff --git

[PATCH 22/22] be2iscsi: Bump driver version

2013-09-12 Thread Jayamohan Kallickal
Bump the driver version Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index 31ac059..c8ed461 10

[PATCH 10/22] be2iscsi: Fix SGL Initilization and posting Pages for Dual Chute

2013-09-12 Thread Jayamohan Kallickal
Initialization of SGL and related PAGE posting is to be done for the chute. Based on configuration value of each Chute,SGL initialization and page posting is done. For BE-X family iSCSI protocol is loaded only on Chute - 1. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --

[PATCH 15/22] be2iscsi: Dispaly CID available for connection offload.

2013-09-12 Thread Jayamohan Kallickal
Display CID available on each iSCSI Fn which can be used to offload a connection. The display is split across available CID on each chute. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c |8 ++-- drivers/scsi/be2iscsi/be_mgmt.c |

[PATCH 09/22] be2iscsi: Fix Template HDR support for Dual Chute mode

2013-09-12 Thread Jayamohan Kallickal
Template HDR is created for each chute which has iSCSI Protocol loaded. For BE-X family iSCSI protocol is loaded only on Chute - 1. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c | 44 +++ drivers/scs

[PATCH 13/22] be2iscsi: Fix connection offload to support Dual Chute

2013-09-12 Thread Jayamohan Kallickal
The connection is offload to each chute in a round-robin manner if both the chute is loaded with iSCSI protocol Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_iscsi.c |6 ++ drivers/scsi/be2iscsi/be_main.c | 13 - drivers/s

[PATCH 00/22] be2iscsi: Update to 10.0.635.0

2013-09-12 Thread Jayamohan Kallickal
This patchset will update be2iscsi driver to 10.0.635.0 and contains the following patches based of scsi.git scsi-misc ` PATCH 0001 - Fix Template HDR IOCTL PATCH 0002 - Fix the MCCQ count leakage PATCH 0003 - Fix repeated issue of MAC ADDR in get IOCTL PATCH 0004 - Fix negotiated paramet

[PATCH 08/22] be2iscsi: Fix changes in ASYNC Path for SKH-R adapter

2013-09-12 Thread Jayamohan Kallickal
DEF_Q[HDR/DATA] is created on the chute on which iSCSI Protocol is loaded. When a connection is offloaded, the DEF_Q HDR/Data ID needs to be passed. FW posts ASYNC message received from target on the passed DEF_Q. Connection can be offloaded on any of the chute so DEF_Q is created on each Chute

[PATCH 05/22] be2iscsi: Fix locking mechanism in Unsol Path

2013-09-12 Thread Jayamohan Kallickal
The default pdu is a common resource and needs to be protected while manipulating it. Signed-off-by: Minh Tran Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_main.c |7 +++ drivers/scsi/be2iscsi/be_main.h |1 + 2 files changed

[PATCH 06/22] be2iscsi: Fix soft lock up issue during UE or if FW taking time to respond

2013-09-12 Thread Jayamohan Kallickal
The timeout set in MBX_CMD is 100sec and the ready bit checking in BMBX mode is done for 4sec. After 4sec the task is scheduled out for 5 secs to avoid kernel soft lockup stack trace. The loop of 4sec ready bit check and then schedule out is done until the following conditon occur - The Ready

[PATCH 04/22] be2iscsi: Fix negotiated parameters upload to FW

2013-09-12 Thread Jayamohan Kallickal
- If target does not send MaxRecvDSL in login repsonse, then initiator should consider the MaxRecvDSL for target is 8K. In this scenario driver was setting the value to 64K and this caused target to close cxn as data xfer was more than the MaxRecvDSL - Update connection offload data s

[PATCH 07/22] be2iscsi: Config parameters update for Dual Chute Support

2013-09-12 Thread Jayamohan Kallickal
On the adapter iSCSI protocol can be loaded on either one or both the CHUTE.Check on which CHUTE iSCSI Protocol is loaded and get configuration parameters based on which driver initization is done. For BE-X family iSCSI protocol is loaded only on Chute - 1. Signed-off-by: John Soni Jose Sign

[PATCH 01/22] be2iscsi: Fix Template HDR IOCTL

2013-09-12 Thread Jayamohan Kallickal
Allocating memory in the Host which will be used by the TOE functionality during Session Offload. This fix will allow performance improvement as adapter memory contention will be reduced. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_cmds.c |

[PATCH 03/22] be2iscsi: Fix repeated issue of MAC ADDR get IOCTL

2013-09-12 Thread Jayamohan Kallickal
Storing MAC ADDR of each function in it's priv structure to avoid issuing MAC_ADDR get IOCTL. Based on a flag set/unset it's decided if MAC_ADDR is stored in priv structure or IOCTL needs to be issued. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscs

[PATCH 02/22] be2iscsi: Fix the MCCQ count leakage

2013-09-12 Thread Jayamohan Kallickal
When MBX CMD is posted in MCCQ and if command times out,during mccq resource cleanup for the timed out command mccq->count was not decremented. The led to BUG_ON being hit. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal --- drivers/scsi/be2iscsi/be_cmds.c |6 +- 1

[PATCH 1/3] fnic: host reset returns nonzero value(errno) on success

2013-09-12 Thread Hiral Patel
From: Narsimhulu Musini Fixed appropriate error codes that returns negative error number on failure, and 0 on success. fnic_reset() is used directly by the fc transport callback issue_fc_host_lip which requires a negative error number on failure. Signed-off-by: Narsimhulu Musini Signed-off-by:

[PATCH 3/3] fnic: Incremented driver version

2013-09-12 Thread Hiral Patel
Signed-off-by: Hiral Patel --- drivers/scsi/fnic/fnic.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h index db7a950..528d43b 100644 --- a/drivers/scsi/fnic/fnic.h +++ b/drivers/scsi/fnic/fnic.h @@ -39,7 +39,7 @@ #defi

[GIT PULL] target updates for v3.12-rc1

2013-09-12 Thread Nicholas A. Bellinger
Hello Linus! Here are the target updates for the v3.12-rc1 merge window. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next Lots of activity again this round for I/O performance optimizations (per-cpu IDA pre-allocation for vhost + isc

Re: [PATCH 2/3] scsi: improved eh timeout handler

2013-09-12 Thread Hannes Reinecke
On 09/11/2013 11:16 AM, Ren Mingxin wrote: Hi, Hannes: On 09/02/2013 07:58 PM, Hannes Reinecke wrote: If abort succeeds the command is either retried or terminated, depending on the number of allowed retries. However, 'eh_eflags' records the abort, so if the retry would fail again the command i

[PATCH] SCSI: buslogic: Added check for DMA mapping errors (was Re: [BusLogic] DMA-API: device driver failed to check map error)

2013-09-12 Thread Khalid Aziz
Added check for DMA mapping errors for request sense data buffer. Checking for mapping error can avoid potential wild writes. This patch was prompted by the warning from dma_unmap when kernel is compiled with CONFIG_DMA_API_DEBUG. Signed-off-by: Khalid Aziz --- drivers/scsi/BusLogic.c | 32 ++

esp_scsi QTAG in FAS216 (was Re: [PATCH 0/2] Experimental Amiga Zorro ESP driver)

2013-09-12 Thread Tuomas Vainikka
On 09/11/2013 05:48 PM, Geert Uytterhoeven wrote: On Wed, Sep 11, 2013 at 12:12 PM, Michael Schmitz wrote: problem. Using PIO, only the first byte of the tag message comes through. It might not be esp_scsi's fault, but there seems to be an assumption that all devices support TCQ. Also, no SCSI-

[PATCH]export device_busy for sdev

2013-09-12 Thread Jack Wang
Hi James, Attached please find patch for export device_busy for sdev. The reason I do this is: Sometime we see doing IO on several devices, on device may starve others, eg: I run fio on top the 4 disks exported by scst using srp: (SRP default can_queue/cmd_per_lun is 62) /dev/sdb: (g=0): rw=ran

Exclusive offer, feel it for real

2013-09-12 Thread RonaldzBruns
Dear Customer Doubling your money before you have even started playing! http://onlinecasino25.webnode.com/casino/casino4 Best Regards, -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.or