Re: [PATCH 2/7] qla2xxx: Move function prototype to correct header

2017-07-19 Thread Johannes Thumshirn
Thanks Himanshu, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284

Re: [PATCH 1/7] qla2xxx: Cleanup NVMe code.

2017-07-19 Thread Johannes Thumshirn
With an updated changelog, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton

Re: [PATCH 1/7] qla2xxx: Cleanup NVMe code.

2017-07-19 Thread Johannes Thumshirn
On Wed, Jul 19, 2017 at 08:44:13PM +, Bart Van Assche wrote: > "cleaned up code" is a very vague description. Please be more specific and > please also mention in the patch description what functionality has been > changed (if any). Hi Bart, These are just some style changes I requested when

Re:'Funds AED35,623,785 (US$9.7 Milliön) for you, Write to e-mail: sarah.shuh...@activist.com for dètails.

2017-07-19 Thread Janette Borg

Re: [PATCH] SCSI: remove DRIVER_ATTR() usage

2017-07-19 Thread Bart Van Assche
On Wed, 2017-07-19 at 14:50 +0200, Greg KH wrote: > From: Greg Kroah-Hartman > > It's better to use the DRIVER_ATTR_RW() and DRIVER_ATTR_RO() macros to > explicitly show that this is a read/write or read/only sysfs file. So > convert the remaining SCSI drivers that use the old style to use the >

Re: [PATCH] scsi: mpt3sas_scsih: remove unnecessary statics

2017-07-19 Thread James Bottomley
On Wed, 2017-07-19 at 17:06 -0500, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variables raid_device. > Such variables are initialized before being used, on > every execution path throughout the functions. The > static has no benefit and, removing it reduces the > object file si

[PATCH] scsi: Add helper functions to set target ID

2017-07-19 Thread Raghava Aditya Renukunta
This patch adds 3 helper functions to set the initial target id, expander id and port id numbers. The ARC/HBA1000 product line exposes RAID drives on bus number 0 and sas transport HBA drives use bus 0 as well. We wanted to differentiate between the RAID and HBA targets when the adapter in mixed

[PATCH] scsi: mpt3sas_scsih: remove unnecessary statics

2017-07-19 Thread Gustavo A. R. Silva
Remove unnecessary static on local variables raid_device. Such variables are initialized before being used, on every execution path throughout the functions. The static has no benefit and, removing it reduces the object file size. This issue was detected using Coccinelle and the following semantic

Re: [PATCH 1/7] qla2xxx: Cleanup NVMe code.

2017-07-19 Thread Madhani, Himanshu
Hi Bart, > On Jul 19, 2017, at 1:44 PM, Bart Van Assche wrote: > > On Wed, 2017-07-19 at 11:51 -0700, Himanshu Madhani wrote: >> This patch cleaned up code to make it more readable > > Hello Himanshu, > > "cleaned up code" is a very vague description. Please be more specific and > please also

Re: [PATCH 3/7] qla2xxx: Add command completion wq for error path

2017-07-19 Thread Bart Van Assche
On Wed, 2017-07-19 at 11:51 -0700, Himanshu Madhani wrote: > From: Duane Grigsby Hello Himanshu and Duane, Too many drivers create workqueues for all kinds of purposes. Why is it necessary to execute qla_nvme_io_work() on the context of a new workqueue? If any of the existing system workqueues c

Re: [PATCH 1/7] qla2xxx: Cleanup NVMe code.

2017-07-19 Thread Bart Van Assche
On Wed, 2017-07-19 at 11:51 -0700, Himanshu Madhani wrote: > This patch cleaned up code to make it more readable Hello Himanshu, "cleaned up code" is a very vague description. Please be more specific and please also mention in the patch description what functionality has been changed (if any). B

[PATCH 4/7] qla2xxx: Added change to enable ZIO for FC-NVMe devices

2017-07-19 Thread Himanshu Madhani
From: Duane Grigsby Add support to the driver to set the exchange threshold value for the number of outstanding AENs. Signed-off-by: Duane Grigsby Signed-off-by: Darren Trapp Signed-off-by: Anil Gurumurthy Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_dbg.c | 2 +- drivers/

[PATCH 7/7] qla2xxx: Refactor usage of Active command arrays

2017-07-19 Thread Himanshu Madhani
From: Quinn Tran Cc: Bart Van Assche Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_bsg.c| 51 --- drivers/scsi/qla2xxx/qla_def.h| 31 +++- drivers/scsi/qla2xxx/qla_init.c | 7 +++--- dr

[PATCH 0/7] qla2xxx: Bug fixes for driver

2017-07-19 Thread Himanshu Madhani
Hi Martin, This series addresses review comments for previously submitted series for Target MQ and FC-NVMe support. Patch 1, 2 addresses review comments by Johannes for FC-NVMe series (https://www.spinics.net/lists/linux-scsi/msg110077.html) (https://www.spinics.net/lists/linux-scsi/msg109985.h

[PATCH 2/7] qla2xxx: Move function prototype to correct header

2017-07-19 Thread Himanshu Madhani
Cc: Johannes Thumshirn Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gbl.h | 11 --- drivers/scsi/qla2xxx/qla_isr.c | 4 ++-- drivers/scsi/qla2xxx/qla_nvme.c | 9 - drivers/scsi/qla2xxx/qla_nvme.h | 17 + 4 files changed, 23 insertions(+), 18 de

[PATCH 3/7] qla2xxx: Add command completion wq for error path

2017-07-19 Thread Himanshu Madhani
From: Duane Grigsby When NVMe commands encounter error NVMe FC transport needs to teardown the connection. This patch adds worker thread to process these IO errors. Signed-off-by: Duane Grigsby Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 2 ++ drivers/scsi/qla2xxx/q

[PATCH 5/7] qla2xxx: Simpify unregistration of FC-NVMe local/remote ports

2017-07-19 Thread Himanshu Madhani
Simplified waiting for unregister local/remote FC-NVMe ports to complete cleanup. Signed-off-by: Duane Grigsby Signed-off-by: Darren Trapp Signed-off-by: Anil Gurumurthy Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 5 ++-- drivers/scsi/qla2xxx/qla_nvme.c | 59 +++

[PATCH 1/7] qla2xxx: Cleanup NVMe code.

2017-07-19 Thread Himanshu Madhani
This patch cleaned up code to make it more readable Cc: Johannes Thumshirn Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 6 ++-- drivers/scsi/qla2xxx/qla_nvme.c | 61 ++--- drivers/scsi/qla2xxx/qla_os.c | 6 ++-- 3 files changed, 3

[PATCH 6/7] qla2xxx: Fix remoteport disconnect for FC-NVMe

2017-07-19 Thread Himanshu Madhani
Signed-off-by: Duane Grigsby Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_isr.c | 37 +++-- drivers/scsi/qla2xxx/qla_nvme.c | 11 --- 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/

[PATCH] SCSI: remove DRIVER_ATTR() usage

2017-07-19 Thread Greg KH
From: Greg Kroah-Hartman It's better to use the DRIVER_ATTR_RW() and DRIVER_ATTR_RO() macros to explicitly show that this is a read/write or read/only sysfs file. So convert the remaining SCSI drivers that use the old style to use the newer macros. Bonus is that this removes some checkpatch.pl

[PATCH] qedi: Add ISCSI_BOOT_SYSFS to Kconfig

2017-07-19 Thread Nilesh Javali
qedi uses iscsi_boot_sysfs to export the targets used for boot to sysfs. Select the config option to make sure the module is built. This addresses the compile time issue, drivers/scsi/qedi/qedi_main.o: In function `qedi_remove': qedi_main.c:(.text+0x3bbd): undefined reference to `iscsi_boo

RE: [PATCH v2 11/15] megaraid_sas: Set device queue_depth same as HBA can_queue value in scsi-mq mode

2017-07-19 Thread Shivasharan Srikanteshwara
> -Original Message- > From: Shivasharan Srikanteshwara > [mailto:shivasharan.srikanteshw...@broadcom.com] > Sent: Wednesday, July 12, 2017 1:51 PM > To: Kashyap Desai; 'Christoph Hellwig' > Cc: 'linux-scsi@vger.kernel.org'; 'martin.peter...@oracle.com'; > 'the...@redhat.com'; 'j...@linux.v

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-19 Thread Johannes Thumshirn
On Wed, Jul 19, 2017 at 03:13:34AM -0500, Jason L Tibbitts III wrote: > [ 46.304530] sg_is_valid_dxfer: dxfer_direction: -2, dxfer_len: 0 Ahh now I see the -2 (SG_DXFER_TO_DEV) is the crucial point here. It is 0 in your case. This would "fix" it but I'm not generally sure it is _the_ solution:

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-19 Thread Jason L Tibbitts III
> "JT" == Johannes Thumshirn writes: JT> Can you please apply this debugging patch, so I can see what's going JT> on. Sure, no problem. I generally run "mtx -f /dev/sg7 status" first just to make sure the library is there; this has always worked as expected. With the debug patch applied, t

Re: [PATCH 05/13] mpt3sas: Set NVMe device queue depth as 128

2017-07-19 Thread Suganath Prabu Subramani
Hi Elliott, We are maintaining NVMe drives as scsi device in mpt3sas driver. There are lot of firmware/hardware level dependencies and after lot of discussions we arrived this value (128). So, we prefer not to provide module parameter to change this at least for now. Thanks, Suganath Prabu S On T

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-19 Thread Johannes Thumshirn
On Tue, Jul 18, 2017 at 12:33:59PM -0500, Jason L Tibbitts III wrote: > I have verified that building a clean v4.12 with > 68c59fcea1f2c6a54c62aa896cc623c1b5bc9b47 cherry picked on top still > shows the problem: > > [root@backup2 ~]# mtx -f /dev/sg7 next 0 > Unloading drive 0 into Storage Element