[PATCH] sd_zbc: Force use of READ16/WRITE16

2016-11-10 Thread Damien Le Moal
Normally, sd_read_capacity sets sdp->use_16_for_rw to 1 based on the disk capacity so that READ16/WRITE16 are used for large drives. However, for a zoned disk with RC_BASIS set to 0, the capacity reported through READ_CAPACITY may be very small, leading to use_16_for_rw not being set and READ10/WRI

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Mike Christie
On 11/10/2016 07:13 PM, Chris Leech wrote: > On Thu, Nov 10, 2016 at 05:22:44PM -0600, Mike Christie wrote: >> > On 11/07/2016 12:22 PM, Chris Leech wrote: >>> > > Currently the iSCSI transport class synchronises target scanning and >>> > > unbinding with a host level mutex. For multi-session host

RE: [PATCH] Fix: scsi: megaraid: reduce the scope of pending-list lock to avoid double lock

2016-11-10 Thread Kashyap Desai
> -Original Message- > From: i...@itu.dk [mailto:i...@itu.dk] > Sent: Monday, October 17, 2016 1:00 PM > To: Jiri Kosina > Cc: Kashyap Desai; Sumit Saxena; Uday Lingala; James E.J. Bottomley; Martin K. > Petersen; megaraidlinux@avagotech.com; linux-scsi@vger.kernel.org; Iago > Abal > Su

RE: Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread Kashyap Desai
> -Original Message- > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > ow...@vger.kernel.org] On Behalf Of Paul Menzel > Sent: Thursday, November 10, 2016 7:40 PM > To: Martin K. Petersen > Cc: linux-scsi@vger.kernel.org; James E.J. Bottomley > Subject: Re: Delivery Status Noti

Re: [PATCH] [SCSI] mpt3sas: Fix secure erase premature termination (v4)

2016-11-10 Thread Sreekanth Reddy
On Thu, Nov 10, 2016 at 8:05 PM, Andrey Grodzovsky wrote: > Problem: > This is a work around for a bug with LSI Fusion MPT SAS2 when > pefroming secure erase. Due to the very long time the operation > takes commands issued during the erase will time out and will trigger > execution of abort hook.

Re: [PATCH] Avoid that SCSI device removal through sysfs triggers a deadlock

2016-11-10 Thread Eric W. Biederman
James Bottomley writes: > On Tue, 2016-11-08 at 20:10 -0600, Eric W. Biederman wrote: >> James Bottomley writes: >> >> > On Tue, 2016-11-08 at 18:57 -0600, Eric W. Biederman wrote: > [...] >> > > I am pretty certain that if you are going to make >> > > kernfs_remove_self and kernfs_remove_by_n

Re: [GIT PULL] SCSI fixes for 4.9-rc3

2016-11-10 Thread Gabriel C
On 11.11.2016 04:30, Gabriel C wrote: > > On 05.11.2016 14:29, James Bottomley wrote: > > > ... > >> Kashyap Desai (1): >> scsi: megaraid_sas: Fix data integrity failure for JBOD (passthrough) >> devices >> >> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c >> b/drivers/scsi/me

Re: [GIT PULL] SCSI fixes for 4.9-rc3

2016-11-10 Thread Gabriel C
On 05.11.2016 14:29, James Bottomley wrote: ... > Kashyap Desai (1): > scsi: megaraid_sas: Fix data integrity failure for JBOD (passthrough) > devices > > diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c > b/drivers/scsi/megaraid/megaraid_sas_base.c > index 9ff57de..d8b1fbd 10064

Re: [PATCH] Avoid that SCSI device removal through sysfs triggers a deadlock

2016-11-10 Thread James Bottomley
On Tue, 2016-11-08 at 20:10 -0600, Eric W. Biederman wrote: > James Bottomley writes: > > > On Tue, 2016-11-08 at 18:57 -0600, Eric W. Biederman wrote: [...] > > > I am pretty certain that if you are going to make > > > kernfs_remove_self and kernfs_remove_by_name_ns to be safe to > > > race ag

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Chris Leech
On Thu, Nov 10, 2016 at 05:22:44PM -0600, Mike Christie wrote: > On 11/07/2016 12:22 PM, Chris Leech wrote: > > Currently the iSCSI transport class synchronises target scanning and > > unbinding with a host level mutex. For multi-session hosts (offloading > > iSCSI HBAs) connecting to storage arra

[PATCH] Update 3ware driver email addresses

2016-11-10 Thread adam radford
This change updates the 3ware drivers (3w-, 3w-9xxx, 3w-sas) email addresses from linuxr...@lsi.com to aradf...@gmail.com, since the old email address doesn't exist. Signed-off-by: Adam Radford --- MAINTAINERS| 2 +- drivers/scsi/3w-9xxx.c | 6 +++--- drivers/scsi/3w-9xxx.h | 6 +

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Mike Christie
On 11/07/2016 12:22 PM, Chris Leech wrote: > Currently the iSCSI transport class synchronises target scanning and > unbinding with a host level mutex. For multi-session hosts (offloading > iSCSI HBAs) connecting to storage arrays that may implement one > target-per-lun, this can result in the targ

[PATCH] g_NCR5380: Fix release_region in error handling

2016-11-10 Thread Finn Thain
From: Ondrej Zary When a SW-configurable card is specified but not found, the driver releases wrong region, causing the following message in kernel log: Trying to free nonexistent resource <-000f> Fix it by assigning base earlier. Signed-off-by: Ondrej Zary Fixes: a

[PATCH] hpsa: correct logical resets

2016-11-10 Thread Don Brace
- driver was not calling done in some cases which causes the volume to be offlined. - avoid doing rescan during a reset. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 24 +++- 1 file changed, 23 insertions(+), 1 de

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Chris Leech
On Thu, Nov 10, 2016 at 10:00:54AM -0800, The Lee-Man wrote: > On Monday, November 7, 2016 at 11:22:23 AM UTC-7, Chris Leech wrote: > > > > Currently the iSCSI transport class synchronises target scanning and > > unbinding with a host level mutex. For multi-session hosts (offloading > > iSCSI HB

Re: Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread adam radford
On Thu, Nov 10, 2016 at 10:42 AM, James Bottomley wrote: > It would look a lot better if you submitted the patch to change this > rather than having git history show someone else dumping it on you ... Sure, I will do that. -Aadm -- To unsubscribe from this list: send the line "unsubscribe linux-

Re: Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread James Bottomley
On Thu, 2016-11-10 at 10:14 -0800, adam radford wrote: > On Thu, Nov 10, 2016 at 6:07 AM, Martin K. Petersen > wrote: > > Ownership of these products is now with Broadcom. To my knowledge > > the 3ware product lines have been discontinued. > > That is true. I am still lurking on this list, if y

Re: [PATCH v2] ufs: introduce hibern8_notify callback

2016-11-10 Thread Subhash Jadavani
On 2016-11-10 04:17, Kiwoong Kim wrote: Some UFS host controller may need to configure some things around hibern8 enter/exit v2: change the callback name and data type of 2nd argument Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 12 ++-- drivers/scsi/ufs/ufshcd.h | 12 ++

Re: [PATCH v2] ufs: introduce setup_task_mgmt

2016-11-10 Thread Subhash Jadavani
On 2016-11-10 04:16, Kiwoong Kim wrote: Some UFS host controller may need to configure some things before any task management request is issued v2: move a comment to another place Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 10 ++ 2 fi

Re: Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread adam radford
On Thu, Nov 10, 2016 at 6:07 AM, Martin K. Petersen wrote: > Ownership of these products is now with Broadcom. To my knowledge the > 3ware product lines have been discontinued. That is true. I am still lurking on this list, if you want to update the email address to: aradf...@gmail.com, I'm fin

Re: [PATCH v2] ufs: introduce setup_xfer_req callback

2016-11-10 Thread Subhash Jadavani
On 2016-11-10 04:14, Kiwoong Kim wrote: Some UFS host controller may need to configure some things before any transfer request is issued. V2: change data type of 2nd argument Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 10 ++ 2 files c

Re: Reduced latency is killing performance

2016-11-10 Thread Jens Axboe
On 11/10/2016 09:04 AM, Hannes Reinecke wrote: Hi all, this really feels like a follow-up to the discussion we've had in Santa Fe, but finally I'm able to substantiate it with some numbers. I've made a patch to enable the megaraid_sas driver for multiqueue. While this is pretty straightforward

Re: Reduced latency is killing performance

2016-11-10 Thread Jens Axboe
On 11/10/2016 09:36 AM, Bart Van Assche wrote: On 11/10/2016 08:04 AM, Hannes Reinecke wrote: this really feels like a follow-up to the discussion we've had in Santa Fe, but finally I'm able to substantiate it with some numbers. Hi Jens, Should I send you the notes I took on Thursday morning

Re: Reduced latency is killing performance

2016-11-10 Thread Bart Van Assche
On 11/10/2016 08:04 AM, Hannes Reinecke wrote: this really feels like a follow-up to the discussion we've had in Santa Fe, but finally I'm able to substantiate it with some numbers. Hi Jens, Should I send you the notes I took on Thursday morning November 3 at 10 AM such that you can publish t

Reduced latency is killing performance

2016-11-10 Thread Hannes Reinecke
Hi all, this really feels like a follow-up to the discussion we've had in Santa Fe, but finally I'm able to substantiate it with some numbers. I've made a patch to enable the megaraid_sas driver for multiqueue. While this is pretty straightforward (I'll be sending the patchset later on), the resu

Re: [PATCH] hpsa: switch to pci_alloc_irq_vectors

2016-11-10 Thread Hannes Reinecke
On 11/10/2016 03:48 PM, Christoph Hellwig wrote: > On Thu, Nov 10, 2016 at 07:48:20AM +0100, Hannes Reinecke wrote: >> What I find quite irritating is that we still have to call >> irq_set_affinity_hint(irq, NULL) when freeing up interrupts. >> Can't we roll that into the call to free_irq() ? > >

Re: [PATCH] hpsa: switch to pci_alloc_irq_vectors

2016-11-10 Thread Christoph Hellwig
On Thu, Nov 10, 2016 at 07:48:20AM +0100, Hannes Reinecke wrote: > What I find quite irritating is that we still have to call > irq_set_affinity_hint(irq, NULL) when freeing up interrupts. > Can't we roll that into the call to free_irq() ? If you do call it that's irritation, because you should no

[PATCH] [SCSI] mpt3sas: Fix secure erase premature termination (v4)

2016-11-10 Thread Andrey Grodzovsky
Problem: This is a work around for a bug with LSI Fusion MPT SAS2 when pefroming secure erase. Due to the very long time the operation takes commands issued during the erase will time out and will trigger execution of abort hook. Even though the abort hook is called for the specific command which t

Re: Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread Paul Menzel
Dear Martin, On 11/10/16 15:07, Martin K. Petersen wrote: "Paul" == Paul Menzel writes: Paul> Probably you know it already, but the listed email address of the Paul> 3WARE SCSI drivers maintainer linuxr...@lsi.com doesn’t work (for Paul> me). Ownership of these products is now with Broadco

Re: Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread Martin K. Petersen
> "Paul" == Paul Menzel writes: Paul, Paul> Probably you know it already, but the listed email address of the Paul> 3WARE SCSI drivers maintainer linuxr...@lsi.com doesn’t work (for Paul> me). Ownership of these products is now with Broadcom. To my knowledge the 3ware product lines have bee

Re: Ordering problems with 3ware controller

2016-11-10 Thread Martin K. Petersen
> "Paul" == Paul Menzel writes: Paul, >> Linux does not provide device discovery ordering guarantees. You need >> to fix your scripts to use UUIDs, filesystem labels, or DM devices to >> get stable naming. Paul> Indeed. But it worked for several years, so that *something* must Paul> have ch

Re: [PATCH] [SCSI] mpt3sas: Fix secure erase premature termination (v3)

2016-11-10 Thread Greg KH
On Thu, Nov 10, 2016 at 08:42:52AM -0500, Andrey Grodzovsky wrote: > Problem: > This is a work around for a bug with LSI Fusion MPT SAS2 when > pefroming secure erase. Due to the very long time the operation > takes commands issued during the erase will time out and will trigger > execution of abor

[PATCH] [SCSI] mpt3sas: Fix secure erase premature termination (v3)

2016-11-10 Thread Andrey Grodzovsky
Problem: This is a work around for a bug with LSI Fusion MPT SAS2 when pefroming secure erase. Due to the very long time the operation takes commands issued during the erase will time out and will trigger execution of abort hook. Even though the abort hook is called for the specifc command which ti

Delivery Status Notification for linuxr...@lsi.com

2016-11-10 Thread Paul Menzel
Dear Linux folks, Probably you know it already, but the listed email address of the 3WARE SCSI drivers maintainer linuxr...@lsi.com doesn’t work (for me). Please see the attached message. Kind regards, Paul --- Begin Message --- This is an automatically generated Delivery Status Notificati

[Bug 187381] 4.9.-rc4 produces hundreds of unusable scsi devices.

2016-11-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=187381 Tommy Wu changed: What|Removed |Added CC||wu.to...@gmail.com --- Comment #4 from Tommy

[PATCH v2] ufs: introduce hibern8_notify callback

2016-11-10 Thread Kiwoong Kim
Some UFS host controller may need to configure some things around hibern8 enter/exit v2: change the callback name and data type of 2nd argument Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 12 ++-- drivers/scsi/ufs/ufshcd.h | 12 2 files changed, 22 insertions

[PATCH v2] ufs: introduce setup_task_mgmt

2016-11-10 Thread Kiwoong Kim
Some UFS host controller may need to configure some things before any task management request is issued v2: move a comment to another place Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 10 ++ 2 files changed, 12 insertions(+) diff --git

[PATCH v2] ufs: introduce setup_xfer_req callback

2016-11-10 Thread Kiwoong Kim
Some UFS host controller may need to configure some things before any transfer request is issued. V2: change data type of 2nd argument Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 10 ++ 2 files changed, 12 insertions(+) diff --git a/dri

Re: [PATCH] [SCSI] mpt3sas: Fix secure erase premature termination (v2)

2016-11-10 Thread Sreekanth Reddy
On Sat, Nov 5, 2016 at 6:47 PM, Andrey Grodzovsky wrote: > On Fri, Nov 4, 2016 at 10:51 AM, Hannes Reinecke wrote: >> On 11/04/2016 01:45 PM, Sreekanth Reddy wrote: >>> >>> Hi All, >>> >>> From last two days, I was working with my firmware team to get the >>> required info over this issue. Here i

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-10 Thread John Garry
On 09/11/2016 20:35, Dan Williams wrote: On Wed, Nov 9, 2016 at 11:09 AM, Dan Williams wrote: On Wed, Nov 9, 2016 at 9:36 AM, John Garry wrote: On 09/11/2016 12:28, John Garry wrote: On 03/11/2016 14:58, John Garry wrote: The following patch introduces an annoying WARN when a device is re