[PATCH resend] USB: uas: Fix slave queue_depth not being set

2016-05-31 Thread Hans de Goede
Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level") removed the scsi_change_queue_depth() call from uas_slave_configure() assuming that the slave would inherit the host's queue_depth, which that commit sets to the same value. This is incorrect, without the scsi_change_queue_depth

[PATCH resend 0/1] USB: uas: Fix slave queue_depth not being set

2016-05-31 Thread Hans de Goede
Hi Greg, There was some discussion about this patch during its initial posting, but the concensus seems to be that this patch, which is in essence a partial revert of the patch causing the problem, is the best way to fix this. So I'm resending this to make sure it does not fall through the cracks

[PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Wei Fang
sas_ata_strategy_handler() adds the works of the ata error handler to system_unbound_wq. This workqueue asynchronously runs work items, so the ata error handler will be performed concurrently on different CPUs. In this case, ->host_failed will be decreased simultaneously in scsi_eh_finish_cmd() on

[PATCH v2 2/2] Documentation/scsi: update scsi_eh.txt about ->host_failed

2016-05-31 Thread Wei Fang
Update the new concurrency rules of ->host_failed. Signed-off-by: Wei Fang --- Documentation/scsi/scsi_eh.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/scsi/scsi_eh.txt b/Documentation/scsi/scsi_eh.txt index 8638f61..e6d0de2 100644 --- a/Documentat

[PATCH 3/5] scsi: Use pci_(request|release)_mem_regions

2016-05-31 Thread Johannes Thumshirn
Now that we do have pci_request_mem_regions() and pci_release_mem_regions() at hand, use it in the lpfc driver. Suggested-by: Christoph Hellwig Signed-off-by: Johannes Thumshirn Cc: James Smart Cc: Dick Kennedy Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.or

[PATCH 0/5] Introduce pci_(request|release)_(mem|io)_regions

2016-05-31 Thread Johannes Thumshirn
The first patch in this series introduces the following 4 helper functions to the PCI core: * pci_request_mem_regions() * pci_request_io_regions() * pci_release_mem_regions() * pci_release_io_regions() which encapsulate the request and release of a PCI device's memory or I/O bars. The subsequent

[PATCH 0/3] hisi_sas: v2 hw ACPI support and fix lock

2016-05-31 Thread John Garry
This patchset introduces 2 separate features/fixes: - v2 hw ACPI support: implemented the same as v1 hw - fix inconsistent lock: remove unnecessary spinlock_irqsave() in broadcast interrupt handler John Garry (3): hisi_sas: add v2 hw ACPI support hisi_sas: fix the inconsistent lock issue rep

[PATCH 2/3] hisi_sas: fix the inconsistent lock issue reported by CONFIG_PROVE_LOCKING

2016-05-31 Thread John Garry
It is not necessary to surround call to notify_port_event(, PORTE_BROADCAST_RCVD) by spin_lock_irqsave(), so remove. This was causing a warn, as below: = [ INFO: inconsistent lock state ] 4.4.8+ #12 Not tainted - i

[PATCH 1/3] hisi_sas: add v2 hw ACPI support

2016-05-31 Thread John Garry
Add support in v2 hw driver for ACPI. A check on whether an ACPI handle is available for the device is used to decide on whether to use ACPI reset handler or syscon for hw reset. Signed-off-by: John Garry Signed-off-by: Wei Xu --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 68 +++

[PATCH 3/3] hisi_sas: update driver version to 1.5

2016-05-31 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index d7cab72..4731d32 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/h

Re: [PATCH v3 5/6] scsi_debug: uuid for lu name

2016-05-31 Thread Andy Shevchenko
On Fri, May 6, 2016 at 7:40 AM, Douglas Gilbert wrote: > Permit changing of a LU name from a (fake) IEEE registered NAA (5) > to a locally assigned UUID. Using a UUID (RFC 4122) for a SCSI > designation descriptor (e.g. a LU name) was added in spc5r08.pdf > (a draft INCITS standard) on 25 January

[PATCH] scsi: Add QEMU CD-ROM to VPD Inquiry Blacklist

2016-05-31 Thread Ewan D. Milne
Linux fails to boot as a guest with a QEMU CD-ROM: [4.439488] ata2.00: ATAPI: QEMU CD-ROM, 0.8.2, max UDMA/100 [4.443649] ata2.00: configured for MWDMA2 [4.450267] scsi 1:0:0:0: CD-ROMQEMU QEMU CD-ROM 0.8. PQ: 0 ANSI: 5 [4.464317] ata2.00: exception Emask 0x0

Re: [PATCH] scsi: Add QEMU CD-ROM to VPD Inquiry Blacklist

2016-05-31 Thread Johannes Thumshirn
On Tue, May 31, 2016 at 09:42:29AM -0400, Ewan D. Milne wrote: > Linux fails to boot as a guest with a QEMU CD-ROM: > > [4.439488] ata2.00: ATAPI: QEMU CD-ROM, 0.8.2, max UDMA/100 > [4.443649] ata2.00: configured for MWDMA2 > [4.450267] scsi 1:0:0:0: CD-ROMQEMU QEMU CD-

Re: [PATCH] bnx2fc: replace printk() with BNX2FC_IO_DBG()

2016-05-31 Thread Chad Dupuis
> The "fcp_rsp_code = %d" message isn't an error, it's meant to > be informative only. > This patch prevents a flood of such messages in some situations. > > Tested-by: Laurence Oberman > Signed-off-by: Maurizio Lombardi > --- > drivers/scsi/bnx2fc/bnx2fc_io.c | 2 +- > 1 file changed, 1 insertion

Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Tejun Heo
On Tue, May 31, 2016 at 04:38:17PM +0800, Wei Fang wrote: > sas_ata_strategy_handler() adds the works of the ata error handler > to system_unbound_wq. This workqueue asynchronously runs work items, Are there more than one error handling work items per host? Thanks. -- tejun -- To unsubscribe fr

Re: [PATCH 4/5] scsi: add new async device reset support

2016-05-31 Thread Mike Christie
On 05/30/2016 01:27 AM, Hannes Reinecke wrote: > On 05/25/2016 09:55 AM, mchri...@redhat.com wrote: >> From: Mike Christie >> >> Currently, if the SCSI eh runs then before we do a LUN_RESET >> we stop the host. This patch and the block layer one before it >> begin to add infrastructure to be able

Re: [PATCH 4/5] scsi: add new async device reset support

2016-05-31 Thread Mike Christie
On 05/31/2016 02:38 PM, Mike Christie wrote: > On 05/30/2016 01:27 AM, Hannes Reinecke wrote: >> On 05/25/2016 09:55 AM, mchri...@redhat.com wrote: >>> From: Mike Christie >>> >>> Currently, if the SCSI eh runs then before we do a LUN_RESET >>> we stop the host. This patch and the block layer one

Re: [PATCH 0/5] block/target queue/LUN reset support

2016-05-31 Thread Mike Christie
On 05/30/2016 01:37 AM, Hannes Reinecke wrote: > On 05/25/2016 09:54 AM, mchri...@redhat.com wrote: >> Currently, for SCSI LUN_RESETs the target layer can only wait on >> bio/requests it has sent. This normally results in the LUN_RESET >> timing out on the initiator side and that SCSI error handler

Re: [PATCH 4/5] scsi: add new async device reset support

2016-05-31 Thread Mike Christie
On 05/31/2016 02:38 PM, Mike Christie wrote: > On 05/30/2016 01:27 AM, Hannes Reinecke wrote: >> On 05/25/2016 09:55 AM, mchri...@redhat.com wrote: >>> From: Mike Christie >>> >>> Currently, if the SCSI eh runs then before we do a LUN_RESET >>> we stop the host. This patch and the block layer one

Re: [PATCH] scsi_debug: fix sleep in invalid context

2016-05-31 Thread Douglas Gilbert
On 2016-05-30 03:09 PM, Christoph Hellwig wrote: On Mon, May 30, 2016 at 12:02:45PM -0700, James Bottomley wrote: This might fix the immediate warning, but won't it demand huge contiguous memory chunks in high lun configurations and thus fail randomly? Report luns is important to us because if

[PATCH v2] scsi_debug: fix sleep in invalid context

2016-05-31 Thread Douglas Gilbert
In this post: http://www.spinics.net/lists/linux-scsi/msg97124.html the author shows some kernel infrastructure complaining about a sleep in an invalid context. Remove offending call to vmalloc(). Instead of using kzalloc() which reviewers didn't like, use a bucket system (64 bytes on the stack) an

Performance degradation on 4.6

2016-05-31 Thread Robert LeBlanc
I've been working with iSER trying to maximize performance. I have two FDR Infiniband cards (three ports total) and I've created multiple address on the target and configured 12 paths from the initiator. The iSER target is served up from a RAM disk. With the 4.4 kernel I'm able to pretty much satur

Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Wei Fang
Hi, Tejun, On 2016/5/31 22:33, Tejun Heo wrote: > On Tue, May 31, 2016 at 04:38:17PM +0800, Wei Fang wrote: >> sas_ata_strategy_handler() adds the works of the ata error handler >> to system_unbound_wq. This workqueue asynchronously runs work items, > > Are there more than one error handling work

Re: [PATCH] [SCSI] aacraid: use kmemdup

2016-05-31 Thread Martin K. Petersen
> "Muhammad" == Muhammad Falak R Wani writes: Muhammad> Use kmemdup when some other buffer is immediately copied into Muhammad> allocated region. It replaces call to allocation followed by Muhammad> memcpy, by a single call to kmemdup. Applied to 4.8/scsi-queue. -- Martin K. Petersen

Re: [PATCH 42/54] MAINTAINERS: Add file patterns for scsi device tree bindings

2016-05-31 Thread Martin K. Petersen
> "Geert" == Geert Uytterhoeven writes: Geert> Submitters of device tree binding documentation may forget to CC Geert> the subsystem maintainer if this is missing. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line

Re: [PATCH] ufs: Adding license info do tc-dwc-g210 and ufshcd-dwc to enable loadable modules

2016-05-31 Thread Martin K. Petersen
> "Joao" == Joao Pinto writes: Joao> This patch adds license info to the tc-dwc-g210 and ufshcd-dwc Joao> files in order for them to have access to some ufshcd symbols when Joao> all are built as modules. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To

Re: [PATCH 0/2] _scsih_sas_host_add early exits can crash system

2016-05-31 Thread Martin K. Petersen
> "Joe" == Joe Lawrence writes: Joe> There are many error paths in _scsih_sas_host_add that lead to an Joe> early exit and a few that leave IOC resources uninitialized, Joe> setting the stage for a later crash. Applied to 4.8/scsi-queue. Please make sure to use "mpt3sas: foo bar" in the pat

Re: [PATCH] Use the correct size to set block max sectors

2016-05-31 Thread Martin K. Petersen
> "Long" == Long Li writes: Long, Long> Yes, this has been fixed in that patch. I'd like to get my patch into scsi-fixes but it needs another set of eyes. Would you mind either testing or reviewing it? Thanks! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from thi

Re: [PATCH] bnx2fc: replace printk() with BNX2FC_IO_DBG()

2016-05-31 Thread Martin K. Petersen
> "Maurizio" == Maurizio Lombardi writes: Maurizio> The "fcp_rsp_code = %d" message isn't an error, it's meant to Maurizio> be informative only. This patch prevents a flood of such Maurizio> messages in some situations. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux En

Re: sd: ZBC Update Read/Write Commands to SCSI spec

2016-05-31 Thread Martin K. Petersen
> "Petros" == Petros Koutoupis writes: Petros> Note, I did not place the a check for zoned devices in the Petros> DIF-enabled conditional above, under the assumption that if the Petros> media supports Type-2 then it should also support the 32-byte Petros> commands. Thoughts? That's correct.

Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Dan Williams
On Tue, May 31, 2016 at 1:38 AM, Wei Fang wrote: > sas_ata_strategy_handler() adds the works of the ata error handler > to system_unbound_wq. This workqueue asynchronously runs work items, > so the ata error handler will be performed concurrently on different > CPUs. In this case, ->host_failed wi

Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Dan Williams
On Tue, May 31, 2016 at 8:21 PM, Dan Williams wrote: > On Tue, May 31, 2016 at 1:38 AM, Wei Fang wrote: >> sas_ata_strategy_handler() adds the works of the ata error handler >> to system_unbound_wq. This workqueue asynchronously runs work items, >> so the ata error handler will be performed concu

Re: BLKZEROOUT not zeroing md dev on VMDK

2016-05-31 Thread Sitsofe Wheeler
On 27 May 2016 at 10:30, Tom Yan wrote: > There seems to be some sort of race condition between > blkdev_issue_zeroout() and the scsi disk driver (disabling write same > after an illegal request). On my UAS drive, sometimes `blkdiscard -z > /dev/sdX` will return right away, even though if I then c

Re: [PATCH 0/5] block/target queue/LUN reset support

2016-05-31 Thread Hannes Reinecke
On 05/31/2016 09:56 PM, Mike Christie wrote: > On 05/30/2016 01:37 AM, Hannes Reinecke wrote: >> On 05/25/2016 09:54 AM, mchri...@redhat.com wrote: >>> Currently, for SCSI LUN_RESETs the target layer can only wait on >>> bio/requests it has sent. This normally results in the LUN_RESET >>> timing ou

尊敬的用戶電子郵件

2016-05-31 Thread Nucleo de Defesa dos Direitos Humanos
尊敬的用戶電子郵件, 您的郵箱已超出其存儲限制由電子郵件管理員設置服務台,您將無法接收新郵件,直到您重新驗證。 點擊這裡:https://twdesk-dtbgv.formstack.com/forms/taiwan_form 在其他的賬號正在使用重新驗證您的電子郵件帳戶。 2016年版權所有台灣現服務支持。 版權所有 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More m