Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
perror("write"); if (errno == EINVAL) printf("FAIL\n"); goto out_close; } printf("PASS\n"); out_close: close(fd); } -- Johannes Thumshirn Sto

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 10:44:47AM +0200, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 08:57:54AM +0100, Chris Clayton wrote: > > Thanks for the reply, Johannes. > > The strace log for 4.12.0 is attached. > > Thanks Chris. > > Can I have a known good versi

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
= 6 ioctl(6, SG_SET_RESERVED_SIZE, [131072]) = 0 ioctl(6, SG_SET_TIMEOUT, [1080])= 0 write(6, "\0\0\0\0H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 42) = -1 EINVAL (Invalid argument) -- Johannes Thumshirn

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 08:06:17AM +0100, Chris Clayton wrote: > I can provide the full traces or any other diagnostics, if they would help. Yes this would definitively help. An strace log would be great so I can make a local reproducer. Thanks, Johannes -- Johannes Thumsh

Re: [PATCH 00/13]mpt3sas driver NVMe support:

2017-06-29 Thread Johannes Thumshirn
NVMe devices and > PCIe switches. Hi Suganath, Can you please also Cc linux-n...@lists.infradead.org for NVMe related topics. Thanks, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689

Re: [PATCH 1/5] scsi: bnx2i: convert to workqueue

2017-06-29 Thread Johannes Thumshirn
So here we are again, Tested-by: Johannes Thumshirn <jthumsh...@suse.de> FCoE will follow as soon as my setup can speak FCoE again. -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINU

Re: [PATCH 13/47] megaraid: pass in NULL scb for host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 12/47] qla1280: separate out host reset function from qla1280_error_action()

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 11/47] snic: reserve tag for TMF

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 10/47] ips: Do not try to abort command from host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 08/47] sym53c8xx_2: split off bus reset from host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 08/47] sym53c8xx_2: split off bus reset from host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 07/47] aacraid: complete all commands during bus reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 06/47] aacraid: add fib flag to mark scsi command callback

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 05/47] aacraid: enable sending of TMFs from aac_hba_send()

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 03/47] aacraid: split off device, target, and bus reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 02/47] aacraid: split off host reset

2017-06-28 Thread Johannes Thumshirn
the space between the asterisk and the variable names. Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnbe

Re: [PATCH 01/47] aacraid: split off functions to generate reset FIB

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 28/28] NCR5380: Clear all unissued commands on host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 27/28] eata: remove 'arg_done' from eata2x_eh_host_reset()

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 23/28] bnx2fc: remove obsolete bnx2fc_eh_host_reset() definition

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 24/28] megaraid_mbox: drop duplicate bus reset and device reset function

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 21/28] aha152x: drop bus reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 20/28] nsp32: drop bus reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 18/28] ppa: drop duplicate bus_reset handler

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 17/28] imm: drop duplicate bus_reset handler

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 15/28] NCR5380: Move bus reset to host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 16/28] qlogicfas: move bus_reset to host_reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 14/28] acornscsi: move bus reset to host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 13/28] qlogicpti: move bus reset to host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 12/28] rtsx: drop bus reset function

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 11/28] scsi: drop bus reset for wd33c93-compatible boards

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 09/28] hptiop: Simplify reset handling

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 10/28] fdomain: move bus reset to host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 08/28] bfa: move bus reset to target reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 07/28] libsas: move bus_reset_handler() to target_reset_handler()

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 06/28] uas: move eh_bus_reset_handler to eh_device_reset_handler

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 05/28] fnic: do not call host reset from command abort

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 04/28] fc_fcp: do not call fc_block_scsi_eh() from host reset

2017-06-28 Thread Johannes Thumshirn
Acked-by: Johannes Thumshirn <j...@kernel.org> -- 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

Re: [PATCH 03/28] ibmvfc: Do not call fc_block_scsi_eh() on host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 02/28] mptfc: Do not call fc_block_scsi_eh() on host reset

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 01/28] scsi: fix comment in scsi_device_set_state()

2017-06-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH RESEND] scsi: Add STARGET_CREATED_REMOVE state to scsi_target_state

2017-06-28 Thread Johannes Thumshirn
reap_ref_release() will take the wrong path. The end > result is a panic: Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> Although we've been tampering with the target removal code for quite some time now, so I really have the gut feeling we haven't really fixed th

Re: [PATCH] Remove the definition of VLC_SA_RECEIVE_CREDENTIAL

2017-06-26 Thread Johannes Thumshirn
ned-off-by: Bart Van Assche <bart.vanass...@wdc.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse.de> > --- Thanks Bart, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Joha

Re: [PATCH] scsi: aacraid: Don't copy uninitialized stack memory to userspace

2017-06-23 Thread Johannes Thumshirn
3400e64d377 ("scsi: aacraid: Include HBA direct interface") > Fixes: c799d519bf088 ("scsi: aacraid: Retrieve HBA host information ioctl") > Signed-off-by: Seth Forshee <seth.fors...@canonical.com> > --- Looks good, Reviewed-by: Johannes T

Re: [PATCH v2 2/2] smartpqi: limit transfer length to 1MB

2017-06-23 Thread Johannes Thumshirn
is caused from d2be537c3ba3568acd79cd178327b842e60d035e, > which changed max_sectors_kb to 1280k, but the hardware is able to > work fine with it, so the true fix should be from smartpqi driver. > > Signed-off-by: Yadan Fan <yd...@suse.com> > --- Reviewed-by: Johannes Thumshirn <jth

Re: [PATCH v2 1/2] hpsa: limit transfer length to 1MB

2017-06-23 Thread Johannes Thumshirn
is caused from d2be537c3ba3568acd79cd178327b842e60d035e, > which changed max_sectors_kb to 1280k, but the hardware is able to > work fine with it, so the true fix should be from hpsa driver. > > Signed-off-by: Yadan Fan <yd...@suse.com> > --- Reviewed-by: Johannes Thumshirn <jth

Re: [PATCH] bnx2i: missing error code in bnx2i_ep_connect()

2017-06-23 Thread Johannes Thumshirn
I driver.") > Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> > Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 7405

[PATCH v2] qla2xxx: Protect access to qpair members with qpair->qp_lock

2017-06-23 Thread Johannes Thumshirn
In qla2xx_start_scsi_mq() and qla2xx_dif_start_scsi_mq() we grab the qpair->qp_lock but do access members of the qpair before having the lock. Re-order the locking sequence to have all read and write access to qpair members under the qpair->qp_lock. Signed-off-by: Johannes Thumshirn &l

Re: [PATCH v2 3/6] qla2xxx: Add FC-NVMe F/W initialization and transport registration

2017-06-23 Thread Johannes Thumshirn
() > >`-> nvme_fc_queue_rq() > >`-> nvme_fc_start_fcp_op() > >`-> qla_nvme_post_cmd() > > isn't called from an IRQ context and qla2xxx_get_qpair_sp() internally > > uses mempool_alloc(). From mempool_alloc()'s documentatio

Re: [PATCH v2 3/6] qla2xxx: Add FC-NVMe F/W initialization and transport registration

2017-06-22 Thread Johannes Thumshirn
semantic that after the registration is done the object can be used and thus assigning private pointer afterwards is an error. Damn I didn't realize this in the nmve-fc review. -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH] lpfc: Fix nvme io stoppage after link bounce

2017-06-22 Thread Johannes Thumshirn
> on ndlp state are needed, there is no race. Thanks for the explanation -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smit

Re: [PATCH] qla2xxx: Protect access to qpair members with qpair->qp_lock

2017-06-22 Thread Johannes Thumshirn
On Thu, Jun 22, 2017 at 03:19:27PM +0100, John Garry wrote: > On 22/06/2017 14:43, Johannes Thumshirn wrote: > >In qla2xx_start_scsi_mq() and qla2xx_dif_start_scsi_mq() we grab the > >qpair->qp_lock but do access members of the qpair before having the lock. > >Re-order the

[PATCH] qla2xxx: Protect access to qpair members with qpair->qp_lock

2017-06-22 Thread Johannes Thumshirn
In qla2xx_start_scsi_mq() and qla2xx_dif_start_scsi_mq() we grab the qpair->qp_lock but do access members of the qpair before having the lock. Re-order the locking sequence to have all read and write access to qpair members under the qpair->qp_lock. Signed-off-by: Johannes Thumshirn &l

Re: [PATCH 1/2] hpsa: limit transfer length to 1MB

2017-06-22 Thread Johannes Thumshirn
bsc#1025461 and our internal Bugzilla IDs How about: The hpsa firmware will bypass the cache for any requests larger than 1MB, so we shoould cap the request size to avoid any performance regressions in kernels later than 4.3 The same applies for Patch 2/2 -- Johann

Re: [PATCH v2 5/6] qla2xxx: Use FC-NMVe FC4 type for FDMI registration

2017-06-22 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH v2 4/6] qla2xxx: Send FC4 type NVMe to the management server

2017-06-22 Thread Johannes Thumshirn
On Wed, Jun 21, 2017 at 01:48:44PM -0700, Madhani, Himanshu wrote: Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINU

Re: [PATCH v2 3/6] qla2xxx: Add FC-NVMe F/W initialization and transport registration

2017-06-22 Thread Johannes Thumshirn
endif > +module_param(ql2xnvmeenable, int, 0644); > +MODULE_PARM_DESC(ql2xnvmeenable, > +"Enables NVME support. " > +"0 - no NVMe. Default is Y"); Default is Y IFF CONFIG_NVME_FC is enabled. Is it possible to guard the whole module paraneter with IS_ENABLED(CONFIG_NVME_F

Re: [PATCH] lpfc: fix refcount error on node list

2017-06-22 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard,

Re: [PATCH] lpfc: Fix nvme io stoppage after link bounce

2017-06-22 Thread Johannes Thumshirn
ore? Thanks, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard,

Re: [PATCH] qla2xxx: don't include

2017-06-21 Thread Johannes Thumshirn
nge of the > release string. > > Signed-off-by: Johannes Berg <johannes.b...@intel.com> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH 4/6] qla2xxx: Send FC4 type NVMe to the management server

2017-06-21 Thread Johannes Thumshirn
think you forgot to Cc the linux-nvme [1] list on your submission. It would be good to have it on linux-nvme as well as on linux-scsi so Sagi, Christoph and Keith see it as well. Byte, Johannes [1] linux-n...@lists.infradead.org -- Johannes Thumshirn

Re: [PATCH 6/6] qla2xxx: Update Driver version to 10.00.00.00-k

2017-06-19 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- 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 Nort

Re: [PATCH 5/6] qla2xxx: Use FC-NMVe FC4 type for FDMI registration

2017-06-19 Thread Johannes Thumshirn
urthy <anil.gurumur...@cavium.com> > Signed-off-by: Giridhar Malavali <giridhar.malav...@cavium.com> > Signed-off-by: Himanshu Madhani <himanshu.madh...@cavium.com> > --- A bit more of a change log would be highly apprechiated. Other than that, Reviewed-by: Jo

Re: [PATCH 4/6] qla2xxx: Send FC4 type NVMe to the management server

2017-06-19 Thread Johannes Thumshirn
)) { if (vha->flags.nvme_enabled && qla2x00_rff_id(vha, FC4_TYPE_NVME)) ql_dbg(ql_dbg_disc, vha, 0x2049, ) > + ql_dbg(ql_dbg_disc, vha, 0x2049, > +

Re: [PATCH 3/6] qla2xxx: Add FC-NVMe F/W initialization and transport registration

2017-06-19 Thread Johannes Thumshirn
fcport); > + nvme_fc_unregister_remoteport( > + fcport->nvme_remote_port); > + qla_nvme_wait_on_rport_del(fcport); > + qla_nvme_abort_all(fcport); > + } > + } > + > +

Re: mptsas crash on expander hot-remove

2017-06-19 Thread Johannes Thumshirn
On Fri, Jun 16, 2017 at 07:57:08PM -0400, Will Simoneau wrote: > Is this is a known / obvious issue, or should I try to bisect it? This is a known issue with SAS (and FC) drivers, although no soulution exists to this point. Johannes -- Johannes Thumsh

Re: [PATCH 1/6] qla2xxx: Add FC-NVMe port discovery and PRLI handling

2017-06-19 Thread Johannes Thumshirn
(fcport->fw_login_state == DSC_LS_PLOGI_COMP) || > + (fcport->fw_login_state == DSC_LS_PRLI_PEND)) > + return rval; Minor nit, superfluous parenthesis. Anyways, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn

Re: [PATCH] scsi: sas: scsi_queue_work can fail, so make callers aware

2017-06-14 Thread Johannes Thumshirn
On 06/14/2017 02:57 PM, John Garry wrote: > On 14/06/2017 12:52, Johannes Thumshirn wrote: >> libsas uses scsi_queue_work() to queue it's internal event >> notifications. scsi_queue_work() can return -EINVAL if the work queue >> doesn't exist and it does call queue_work() w

[PATCH] scsi: sas: scsi_queue_work can fail, so make callers aware

2017-06-14 Thread Johannes Thumshirn
, which is handy when changing to dynamically allocated work in libsas as well, as discussed here: https://lkml.org/lkml/2017/6/14/121. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> --- drivers/scsi/libsas/sas_event.c| 36 ++-- drivers/scsi/

Re: [PATCH v2] storvsc: use default I/O timeout handler for FC devices

2017-06-14 Thread Johannes Thumshirn
f (scmnd->device->host->transportt == fc_transport_template) > + return fc_eh_timed_out(scmnd); > +#endif Can you please change the #if IS_ENABLED() to if(IS_ENABLED(CONFIG_SCSI_FC_ATTRS) && scmnd->device->ho

Re: [PATCH v2 1/2] libsas: Don't process sas events in static works

2017-06-14 Thread Johannes Thumshirn
* their siblings when forming wide ports */ /* LLDD calls these to notify the class of an event. */ - void (*notify_ha_event)(struct sas_ha_struct *, enum ha_event); + int (*notify_ha_event)(struct sas_ha_struct *, enum ha_event); void (*notify_port_event)(struct asd_sas

Re: [PATCH v2 2/2] libsas: Enhance libsas hotplug

2017-06-14 Thread Johannes Thumshirn
e >we use former wait-complete to achieve a sas event atomic process and use > latter to >make a sas discovery sync. > 4. remove disco_mutex in sas_revalidate_domain, since now > sas_revalidate_domain sync >the destruct discovery event execution, it's no need t

Re: [PATCH v2 1/2] libsas: Don't process sas events in static works

2017-06-14 Thread Johannes Thumshirn
d sas_hash_addr(u8 *hashed, const u8 *sas_addr) > > void sas_hae_reset(struct work_struct *work) > { > - struct sas_ha_event *ev = to_sas_ha_event(work); > - struct sas_ha_struct *ha = ev->ha; > - > - clear_bit(HAE_RESET, >pending); > } I don't r

Re: [ANNOUNCE]: Broadcom (Emulex) FC Target driver - efct

2017-06-13 Thread Johannes Thumshirn
ase, etc... The cyclomatic complexity GCC plugin we have in scripts/gcc-plugins could be of help here, though I only have read about it and never really used myself. -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74

Re: [PATCH] storvsc: use default I/O timeout handler for FC devices

2017-06-13 Thread Johannes Thumshirn
over. > > Signed-off-by: Long Li <lon...@microsoft.com> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX Gmb

Re: [PATCH blktests v2 0/3] Add SCSI generic test group

2017-06-07 Thread Johannes Thumshirn
future tests if it makes sense to run them on a real > device. Thanks! Yes I wanted to go to it tomorrow and send you a v3, I got stuck in NVMe ;-). Thanks for applying it anyways, I'll send a follow up. Johannes -- Johannes Thumshirn Storage jth

Re: [PATCH] Eliminate extra 'out_free' label from fcoe_init function

2017-06-01 Thread Johannes Thumshirn
t happens to the fcoe_wq then? -- 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 (AG Nürnberg) Key

Re: [PATCH] Remove an extra out label in _fcoe_create function

2017-06-01 Thread Johannes Thumshirn
On 06/01/2017 02:08 PM, Milan P. Gandhi wrote: > This patch removes an extra out label in _fcoe_create function > where we return if creation of FCOE interface is failed. > > Signed-off-by: Milan P. Gandhi <mgan...@redhat.com> > --- Thanks, Acked-by: Johannes Thums

Re: [PATCH] Fix few small typos in fcoe.c

2017-06-01 Thread Johannes Thumshirn
On 06/01/2017 02:05 PM, Milan P. Gandhi wrote: > This patch does a cleanup and fixes few small typos in fcoe.c > > Signed-off-by: Milan P. Gandhi <mgan...@redhat.com> > --- Looks good, Acked-by: Johannes Thumshirn <j...@kernel.org>

Re: [PATCH 0/3] libfc: fix potential timer list corruption

2017-05-31 Thread Johannes Thumshirn
'pending' and 'requested' settings? With an a bit more verbose changelog Acked-by: Johannes Thumshirn <j...@kernel.org> for the whole series -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH,

Re: [PATCH] scsi: lpfc: Avoid NULL pointer dereference in lpfc_els_abort()

2017-05-29 Thread Johannes Thumshirn
hy...@in.ibm.com> > Reported-by: Naresh Bannoth <nbann...@in.ibm.com> > Tested-by: Raphael Silva <rapha...@linux.vnet.ibm.com> > Signed-off-by: Guilherme G. Piccoli <gpicc...@linux.vnet.ibm.com> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de

Re: [PATCH] scsi: lpfc: Fix crash on PCI hotplug remove path

2017-05-29 Thread Johannes Thumshirn
Naresh Bannoth <nbann...@in.ibm.com> > Signed-off-by: Guilherme G. Piccoli <gpicc...@linux.vnet.ibm.com> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH 08/31] sd, sr: Convert two assignments into warning statements

2017-05-24 Thread Johannes Thumshirn
. Hence convert these > two assignment statements into warning statements. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse.

Re: [PATCH 07/31] scsi: Use blk_mq_rq_to_pdu() to convert a request to a SCSI command pointer

2017-05-24 Thread Johannes Thumshirn
Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse.de> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- J

Re: [PATCH 02/31] Create two versions of scsi_internal_device_unblock()

2017-05-24 Thread Johannes Thumshirn
On 05/24/2017 02:33 AM, Bart Van Assche wrote: > This will make it easier to serialize SCSI device state changes > through a mutex. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@s

Re: [PATCH 01/31] Split scsi_internal_device_block()

2017-05-24 Thread Johannes Thumshirn
h a mutex. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse.de> > Cc: Sreekanth Reddy <sreekanth.re...@broadcom.com>

[PATCH] qla2xxx: don't disable a not previously enabled PCI device

2017-05-23 Thread Johannes Thumshirn
directly return *iff* one of the pci_enable_device() calls fails. Additionally rename the 'probe_out' goto label's name to the more descriptive 'disable_device'. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> Fixes: e315cd28b9ef ("[SCSI] qla2xxx: Code changes for qla dat

Re: [PATCH blktests v2 3/3] sg/001: add regression test for syzcaller generated GPF in sg_read path

2017-05-23 Thread Johannes Thumshirn
/git/mkp/scsi.git/commit/?h=4.12/scsi-fixes=48ae8484e9fc324b4968d33c585e54bc98e44d61 -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard

Re: [PATCH blktests v2 3/3] sg/001: add regression test for syzcaller generated GPF in sg_read path

2017-05-23 Thread Johannes Thumshirn
I'll pack it into the prepare stage. -- 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 (AG Nürn

Re: [PATCH blktests v2 3/3] sg/001: add regression test for syzcaller generated GPF in sg_read path

2017-05-23 Thread Johannes Thumshirn
Byte, Johannes -- 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 (AG Nürnberg) Key finger

[PATCH blktests v2 1/3] Add ability to build test-cases

2017-05-19 Thread Johannes Thumshirn
Add the ability to build test cases from C files. This is handy for things like syzcaller reproducers and all other kinds of test binaries. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> --- Makefile | 26 +++- src/.gitignore | 1 + src/Makefile | 16 +++ src/sg-001.c

[PATCH blktests v2 3/3] sg/001: add regression test for syzcaller generated GPF in sg_read path

2017-05-19 Thread Johannes Thumshirn
Add a regression test for commit 48ae8484e9fc ("scsi: sg: don't return bogus Sg_requests"). This is a general protection fault triggered by syzcaller via issuing bogus read(2)s on the /dev/sg devices. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> --- tests

[PATCH blktests v2 2/3] tests/sg: add SCSI generic test grouop

2017-05-19 Thread Johannes Thumshirn
Add a test group for tests of the SCSI generic driver and and functions common to the SCSI generic driver and it's test cases. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> --- common/sg | 41 + tests/sg/grou

[PATCH blktests v2 0/3] Add SCSI generic test group

2017-05-19 Thread Johannes Thumshirn
name * Fixed Makefile so it can build more than one target Johannes Thumshirn (3): Add ability to build test-cases tests/sg: add SCSI generic test grouop sg/001: add regression test for syzcaller generated GPF in sg_read path Makefile | 26 +++- common/sg| 41 ++ src

Re: [PATCH blktests 0/3] Add SCSI generic test group

2017-05-19 Thread Johannes Thumshirn
up a bit so it compiles with the "-Wall -Wextra -Werror" trinity. I'll send you a v2 once I'm done with it (and all other comments). Byte, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 7

Re: [PATCH blktests 0/3] Add SCSI generic test group

2017-05-18 Thread Johannes Thumshirn
se we can make a generic sg_io tool but IMHO it's quite convenient to just throw in the reproducers we get. And as it exercises the /dev/sg character device I decided to make a new group. Johannes -- Johannes Thumshirn Storage jthumsh..

[PATCH blktests 1/3] Add ability to build test-cases

2017-05-18 Thread Johannes Thumshirn
Add the ability to build test cases from C files. This is handy for things like syzcaller reproducers and all other kinds of test binaries. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> --- Makefile | 26 +++- src/.gitignore | 1 + src/Makefile | 14 ++ src/sg-001.c

[PATCH blktests 0/3] Add SCSI generic test group

2017-05-18 Thread Johannes Thumshirn
the 'timeout' program in my testcase. Johannes Thumshirn (3): Add ability to build test-cases tests/sg: add SCSI generic test grouop sg/001: add regression test for syzcaller generated GPF Makefile | 26 +++- common/sg| 22 +++ src/.gitignore | 1 + src/Makefile | 14

[PATCH blktests 2/3] tests/sg: add SCSI generic test grouop

2017-05-18 Thread Johannes Thumshirn
Add a test group for tests of the SCSI generic driver and and functions common to the SCSI generic driver and it's test cases. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> --- common/sg | 22 ++ tests/sg/group | 40 +

<    1   2   3   4   5   6   7   8   9   10   >