[PATCH v2 4/5] mvsas: remove the SAS host after the SCSI host

2017-04-21 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshir

[PATCH v2 3/5] scsi: hisi_sas: remove the SAS host after the SCSI host

2017-04-21 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshir

[PATCH v2 2/5] aic94xx: remove the SAS host after the SCSI host

2017-04-21 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshir

[PATCH v2 0/5] Re-order scsi_remove_host and sas_remove_host in SAS HBA LLDDs

2017-04-21 Thread Johannes Thumshirn
an idea how to tackle the ordering issues and place it into sas_unregister_ha() as per James' comment. Thanks, Johannes Johannes Thumshirn (5): scsi: isci: remove the SAS host after the SCSI host aic94xx: remove the SAS host after the SCSI host scsi: hisi_sas: remove the SAS host

[PATCH v2 1/5] scsi: isci: remove the SAS host after the SCSI host

2017-04-21 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshir

Re: [PATCH v2 0/5] Re-order scsi_remove_host and sas_remove_host in SAS HBA LLDDs

2017-04-21 Thread Johannes Thumshirn
On Fri, Apr 21, 2017 at 09:34:18AM +0100, John Garry wrote: > Thanks Johannes. > > @wangyijing, can you test this patchset please (specifically 3/5)? I know > that you have the modified version of libsas which you dabbled with > upstreaming. > > On 21/04/2017 09:04, Joh

Re: ["PATCH-v2" 20/22] Update ABORT processing for NVMET.

2017-04-21 Thread Johannes Thumshirn
; free for re-use on another IO. > > If there is no outstanding activity on the exchange, the driver will send a > ABTS to the Initiator. Upon completion of this WQE, the exchange / context > is freed for re-use on another IO. > > Signed-off-by: Dick Ke

Re: [PATCH-v1 00/22] lpfc updates for 11.2.0.12

2017-04-21 Thread Johannes Thumshirn
the patches? They're for drivers/scsi/lpfc/ after all. I just want to avoid confusion and possible merge conflicts. Thanks, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX G

Re: [PATCH v2 0/5] Re-order scsi_remove_host and sas_remove_host in SAS HBA LLDDs

2017-04-21 Thread Johannes Thumshirn
On Fri, Apr 21, 2017 at 01:19:41PM +0200, Christoph Hellwig wrote: > > Any reason to not just make sas_remove_host call scsi_remove_host > to ensure we get the ordering right? No other than "haven't thought of it". But let me double check the LLDDs fist. --

[PATCH] scsi: sas: move scsi_remove_host call into sas_remove_host

2017-04-21 Thread Johannes Thumshirn
rsive"). Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> Suggested-by: Christoph Hellwig <h...@lst.de> Cc: Hannes Reinecke <h...@suse.de> Cc: James Bottomley <j...@linux.vnet.ibm.com> Cc: Jinpu Wang <jinpu.w...@profitbricks.com> Cc: John Garry <john.

Re: [PATCH-v1 19/22] Fix implicit logo and RSCN handling for NVMET

2017-04-20 Thread Johannes Thumshirn
NVMET sends a GID_FT and determines if an NVMEP_INITIATOR > it has is UNMAPPED but no longer in the zone membership. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> &

Re: [PATCH-v1 21/22] Fix Express lane queue creation.

2017-04-20 Thread Johannes Thumshirn
ne work queue with the > supported size. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn

Re: [PATCH-v1 22/22] lpfc revison 11.2.0.12

2017-04-20 Thread Johannes Thumshirn
mart <james.sm...@broadcom.com> > --- 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ö

Re: [PATCH 12/23] dm mpath: don't check for req->errors

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:03:05PM +0200, Christoph Hellwig wrote: > We'll get all proper errors reported through ->end_io and ->errors will > go away soon. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@s

Re: [PATCH 16/23] blk-mq: remove the error argument to blk_mq_complete_request

2017-04-20 Thread Johannes Thumshirn
-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nür

Re: [PATCH 21/23] swim3: remove (commented out) printing of req->errors

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:03:14PM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Easy enough, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage

Re: [PATCH 22/23] blktrace: remove the unused block_rq_abort tracepoint

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:03:15PM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Just to be sure nothings forgotten, does this change need an update for blktrace as well? -- Johannes Thumshirn Sto

Re: [PATCH 23/23] block: remove the errors field from struct request

2017-04-20 Thread Johannes Thumshirn
k Wilk <konrad.w...@oracle.com> > --- 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ö

Re: [PATCH 01/23] pd: don't check blk_execute_rq return value.

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:02:54PM +0200, Christoph Hellwig wrote: > The driver never sets req->errors, so blk_execute_rq will always return 0. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > Reviewed-by: Bart Van Assche <bart.vanass...@sandisk.com> > --- R

Re: [PATCH 10/23] null_blk: don't pass always-0 req->errors to blk_mq_complete_request

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:03:03PM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage

Re: [PATCH 11/23] dm rq: don't pass irrelevant error code to blk_mq_complete_request

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:03:04PM +0200, Christoph Hellwig wrote: > dm never uses rq->errors, so there is no need to pass an error argument > to blk_mq_complete_request. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthum

Re: [PATCH 14/23] mtip32xx: add a status field to struct mtip_cmd

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 04:03:07PM +0200, Christoph Hellwig wrote: > Instead of using req->errors, which will go away. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de

Re: [PATCH 22/23] blktrace: remove the unused block_rq_abort tracepoint

2017-04-20 Thread Johannes Thumshirn
On Thu, Apr 20, 2017 at 05:25:58PM +0200, Christoph Hellwig wrote: > On Thu, Apr 20, 2017 at 05:20:56PM +0200, Johannes Thumshirn wrote: > > On Thu, Apr 20, 2017 at 04:03:15PM +0200, Christoph Hellwig wrote: > > > Signed-off-by: Christoph Hellwig <h...@lst.de> > >

Re: [PATCH-v1 20/22] Update ABORT processing for NVMET.

2017-04-20 Thread Johannes Thumshirn
c_hba *phba, struct lpfc_iocbq > *cmdwqe, > +struct lpfc_wcqe_complete *wcqe) > { > struct lpfc_nvmet_rcv_ctx *ctxp; > struct lpfc_nvmet_tgtport *tgtp; > @@ -1706,35 +1881,54 @@ lpfc_nvmet_xmt_fcp_abort_cmp(struct lpfc_hba *phba, >

Re: [PATCH] [SCSI] aic7xxx: remove redundant assignment to error

2017-04-18 Thread Johannes Thumshirn
eprom(), b) Linux error codes are negative, c) ahd_write_seeprom() has 'retval' and 'error' for returning error values back to the caller (which doesn't care...) So to sum it up, this change doesn't change anything here. But "fixing" the list above would make a change. HTH,

Re: [PATCH-v1 01/22] Standardize nvme SGL segment count

2017-04-20 Thread Johannes Thumshirn
by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49

Re: [PATCH-v1 02/22] Fix nvme unregister port timeout.

2017-04-20 Thread Johannes Thumshirn
ut was reduced > because timeout failure is the same as timeout. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.d

Re: [PATCH-v1 03/22] Fix rejected nvme LS Req.

2017-04-20 Thread Johannes Thumshirn
pnvme_rport->port_id, > + ndlp->nlp_state, ndlp->nlp_type); > + return -ENODEV; This if statement is horrible to read with all those parenthesis. It really looks more like LISP than C. IIRC I already told you this in my last revie

Re: [PATCH-v1 04/22] Fix log message in completion path.

2017-04-20 Thread Johannes Thumshirn
ioned to a non active state. > > There is no need to print the node pointer address for a node that > is not active the DID should be enough to debug. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com&

Re: [PATCH-v1 05/22] Add debug messages for nvme/fcp resource allocation.

2017-04-20 Thread Johannes Thumshirn
ded debug message to log XRI split. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn

Re: [PATCH-v1 08/22] Remove NULL ptr check before kfree.

2017-04-20 Thread Johannes Thumshirn
om.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH,

Re: [PATCH-v1 09/22] Fix extra line print in rqpair debug print.

2017-04-20 Thread Johannes Thumshirn
om.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH,

Re: [PATCH-v1 06/22] Fix spelling in comments.

2017-04-20 Thread Johannes Thumshirn
com> > --- 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 Smitha

Re: [PATCH-v1 07/22] Remove unused defines for NVME PostBuf.

2017-04-20 Thread Johannes Thumshirn
...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE

Re: [PATCH-v1 10/22] Fix PRLI ACC rsp for NVME

2017-04-20 Thread Johannes Thumshirn
BC B5 56 56 23 61 00 00 00 61 04 00 01 98 00 00 30 00 00 00 > 00 10 00 18 00 00 00 00 02 14 00 18 28 00 01 00 00 00 00 00 > 00 00 00 00 00 00 00 18 00 00 00 00 B0 6B 07 57 BC B5 75 75 > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: Ja

Re: [PATCH-v1 11/22] Fix driver unload/reload operation.

2017-04-20 Thread Johannes Thumshirn
kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> But I'd really like to see a Tested-by from Junichi here. -- Johannes Thumshirn Storag

Re: [PATCH-v1 12/22] Fix driver usage of 128B WQEs when WQ_CREATE is V1.

2017-04-20 Thread Johannes Thumshirn
the driver sets the hdr_version to V1 so all is good. > When I tested the V1 WQ_CREATE, the mailbox failed causing > the driver to unload. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > ---

Re: [PATCH-v1 13/22] Fix nvme initiator handling when not enabled.

2017-04-20 Thread Johannes Thumshirn
on the localport and lport in lpfc_nvme_update_localport and > dump messages if they are NULL and just exit. > Also one alingment issue fixed. > Repalces the ifdef with the IS_ENABLED macro. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: Jame

Re: [PATCH-v1 14/22] Remove hba lock from NVMET issue WQE.

2017-04-20 Thread Johannes Thumshirn
hbalock is not > needed to issue io to the nvme work queue. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn

Re: [PATCH-v1 16/22] Fix crash after issuing lip reset

2017-04-20 Thread Johannes Thumshirn
> Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH-v1 15/22] Fix driver load issues when MRQ=8

2017-04-20 Thread Johannes Thumshirn
4(struct pci_dev *pdev, const > struct pci_device_id *pid) > goto out_unset_pci_mem_s4; > } > > + cnt = phba->cfg_iocb_cnt * 1024; > + if (phba->nvmet_support) > + cnt += (phba->cfg_nvmet_mrq_post * phba->cfg_nvmet_mrq); So

Re: [PATCH-v1 18/22] Add Fabric assigned WWN support.

2017-04-20 Thread Johannes Thumshirn
t; + vport->vport_flag &= ~FAWWPN_SET; > + if (vvvl == 1 && (cpu_to_be32(*fawwpn_key)) == > + FAPWWN_KEY_VENDOR) > + vport->vport_flag |= FAWWPN_SET; > + } Reviewed-by: Johannes Thumshirn <jthumsh...@suse.d

Re: [PATCH 21/29] drivers, s390: convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t

2017-03-08 Thread Johannes Thumshirn
-after-free situations. The subject is wrong, should be something like "scsi: libfc convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t" but not s390. Other than that Acked-by: Johannes Thumshirn <j...@kernel.org> Turns out that it is better that all these patches go throug

Re: [PATCH 22/29] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-09 Thread Johannes Thumshirn
> This looks OK to me. >>>> >>>> Acked-by: Chris Leech <cle...@redhat.com> >>> >>> Thank you for review! Do you have a tree that can take this change? >> >> Hi Elena, >> >> iscsi like fcoe should go via the SCSI tree. > > Tha

Re: [PATCH 22/29] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-09 Thread Johannes Thumshirn
gned-off-by: Kees Cook <keesc...@chromium.org> >>> Signed-off-by: David Windsor <dwind...@gmail.com> >> >> This looks OK to me. >> >> Acked-by: Chris Leech <cle...@redhat.com> > > Thank you for review! Do you have a tree that can take this change

Re: [PATCH][V2] scsi: cxgb3i: remove redundant null check and kfree on skb

2017-03-14 Thread Johannes Thumshirn
t(csk) does a kref_get(>refcnt), so this will at lease leak a kref. It will also "leak" the atids_in_use in cxgb3_alloc_atid() as there's a call to cxgb3_free_atid() missing. Looks like the complete cleanup path is worng here. But I'd prefer having Karen or someone else at

Re: [PATCH 21/29] drivers, s390: convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t

2017-03-06 Thread Johannes Thumshirn
s. The subject is wrong, should be something like "scsi: libfc convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t" but not s390. Other than that Acked-by: Johannes Thumshirn <j...@kernel.org> -- Johannes Thumshirn

Re: [PATCH] scsi: qedi: fix build error without DEBUG_FS

2017-03-02 Thread Johannes Thumshirn
c FastLinQ offload iSCSI driver > framework.") > Signed-off-by: Arnd Bergmann <a...@arndb.de> > --- Looks good, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH 3/5] nvme: mark nvme_max_retries static

2017-04-05 Thread Johannes Thumshirn
On Wed, Apr 05, 2017 at 04:18:54PM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage

Re: [PATCH 4/5] nvme: move the retries count to struct nvme_request

2017-04-05 Thread Johannes Thumshirn
for additional smaller fields that will appear soon. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH 2/5] nvme: cleanup nvme_req_needs_retry

2017-04-05 Thread Johannes Thumshirn
On Wed, Apr 05, 2017 at 04:18:53PM +0200, Christoph Hellwig wrote: > Don't pass the status explicitly but derive it from the requeust, > and unwind the complex condition to be more readable. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Looks good, Reviewed-b

Re: [PATCH 1/5] nvme: move ->retries setup to nvme_setup_cmd

2017-04-06 Thread Johannes Thumshirn
> to common code. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- Thanks a lot. Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de

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

2017-03-21 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 fingerprint = EC38 9CA

Re: [PATCH 00/29] constify scsi pci_device_id.

2017-07-31 Thread Johannes Thumshirn
parate patch. Thanks, 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ürnber

Re: [PATCH 00/29] constify scsi pci_device_id.

2017-07-31 Thread Johannes Thumshirn
h instead of replicating the same patch 29 times? Thanks, 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 N

Re: [PATCH 1/2] nvmet_fc: add defer_req callback for deferment of cmd buffer return

2017-08-02 Thread Johannes Thumshirn
while ((deferfcp = list_first_entry_or_null(>pending_cmd_list, struct nvmet_fc_defer_fcp_req, req_list)) != NULL) { ? Other than that, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Th

Re: [PATCH 2/2] lpfc: support nvmet_fc defer_rcv callback

2017-08-02 Thread Johannes Thumshirn
On Wed, Aug 02, 2017 at 10:32:20AM +0200, Johannes Thumshirn wrote: > On Tue, Aug 01, 2017 at 03:12:40PM -0700, James Smart wrote: > > This patch is intended to enter the kernel through the nvme block > > tree which pulls in the nvmet_fc api change at the same time. It is > >

Re: [PATCH 2/2] lpfc: support nvmet_fc defer_rcv callback

2017-08-02 Thread Johannes Thumshirn
sz %d from %06x\n", > + oxid, size, sid); > + /* defer reposting rcv buffer till .defer_rcv callback */ > + ctxp->rqb_buffer = (void *)nvmebuf; nvmebuf is a 'struct rqb_dmabuf *' and ctxp->rqb_buffer expects 'struct rqb_

Re: [PATCH v2 01/13] mpt3sas: Update MPI Header

2017-08-03 Thread Johannes Thumshirn
dd indentation. > Please reformat to have type and variable on one line. And use Linux types and no CamelCase and no typedefs (especially not for pointers), you're not on Windows here. Thanks, Johannes -- Johannes Thumshirn Storage jthumsh..

Re: [PATCH] scsi_dh_alua: suppress errors from unsupported devices

2017-08-04 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] sym53c8xx: Avoid undefined behaviour in drivers/scsi/sym53c8xx_2/sym_hipd.c:762

2017-08-11 Thread Johannes Thumshirn
rning by switching to dev64_ul(). div64_ul() ^ Otherwise, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX Gm

Re: [PATCH 3/3] scsi: make 'state' device attribute pollable

2017-08-10 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 2/3] scsi_lib: rework scsi_internal_device_unblock_nowait()

2017-08-10 Thread Johannes Thumshirn
switch()es are so much nicer to read :-) 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:

Re: [PATCH 1/3] scsi: allow state transition CREATED_BLOCK -> TRANSPORT_OFFLINE

2017-08-10 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: [RFC PATCH 4/6] bsg: refactor ioctl to use regular BSG-command infrastructure for SG_IO

2017-08-10 Thread Johannes Thumshirn
onstruct. Thanks, 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 fingerprint

Re: [RFC PATCH 5/6] bsg: reduce unnecessary arguments for bsg_map_hdr()

2017-08-10 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: [RFC PATCH 6/6] bsg: reduce unnecessary arguments for blk_complete_sgv4_hdr_rq()

2017-08-10 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] scsi: libfc: pass an error pointer to fc_disc_error()

2017-07-12 Thread Johannes Thumshirn
it treats -ENOMEM and a valid pointer > the same. But the documentation says we should be passing an error > pointer. Acked-by: Johannes Thumshirn <j...@kernel.org> -- Johannes Thumshirn Storage jthumsh...@suse.de+49

Re: [PATCH v3 0/7] Enhance libsas hotplug feature

2017-07-12 Thread Johannes Thumshirn
b is a SATA disk, the rest are SAS. This is awesome. I hope I have some time reviewing the patches themselfes soon. Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldst

Re: [bug report] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-07-14 Thread Johannes Thumshirn
tation for hp->resid is wrong. It says: > > int resid; /* [o] dxfer_len - actual_transferred */ > > My guess is that resid stands for Response ID but I'm not positive. Nope, it's the residual length. It's set by scsi_req::resid_len -- Johannes Thumshirn

[PATCH] scsi: sg: fix static checker warning in sg_is_valid_dxfer

2017-07-17 Thread Johannes Thumshirn
_dxfer(). Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> Reported-by: Colin Ian King <colin.k...@canonical.com> Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Cc: Douglas Gilbert <dgilb...@interlog.com> --- drivers/scsi/sg.c | 7 +-- 1 file changed

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

2017-07-11 Thread Johannes Thumshirn
? Thanks, 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 fingerpri

[PATCH v2] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-07-07 Thread Johannes Thumshirn
Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> Fixes: 28676d869bbb ("scsi: sg: check for valid direction before starting the request") Reported-by: Chris Clayton <chris2...@googlemail.com> Tested-by: Chris Clayton <chris2...@googlemail.com> Cc: Douglas Gi

Re: [RFC v3 1/2] scsi: generate uevent for SCSI sense code

2017-07-13 Thread Johannes Thumshirn
On Wed, Jul 12, 2017 at 03:35:34PM -0700, Song Liu wrote: > + if (!test_bit(sshdr->sense_key & 0xf, > + >sense_event_filter)) While being technically correct, this looks a bit kludgy. Please pass in the whole sense_key without masking it. Byte, Johan

Re: [PATCH] scsi: qedf: Limit number of CQs

2017-07-14 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 blktests] sg: add regression test for patch scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-07-14 Thread Johannes Thumshirn
Omar, ping? -- 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 fingerprint = EC38

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

2017-07-18 Thread Johannes Thumshirn
is fixed with: commit 68c59fcea1f2c6a54c62aa896cc623c1b5bc9b47 Author: Johannes Thumshirn <jthumsh...@suse.de> Date: Fri Jul 7 10:56:38 2017 +0200 scsi: sg: fix SG_DXFER_FROM_DEV transfers SG_DXFER_FROM_DEV transfers do not necessarily have a dxferp as we set it to NULL for the old s

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

2017-07-20 Thread Johannes Thumshirn
With an updated changelog, 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

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

2017-07-20 Thread Johannes Thumshirn
Thanks Himanshu, 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 Sm

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

2017-07-20 Thread Johannes Thumshirn
"Done %s.\n", __func__); > + } In patch 1 you change all the if (rval != QLA_SUCCESS) { qla_dbg(); } else { qla_dbg(); } into a single qla_dbg. Now you re-introduce the pattern here. > +int qla27xx_get_zio_threshold(scsi_qla_host_t *vha, uint16_t *valu

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

2017-07-20 Thread Johannes Thumshirn
es I requested when reviewing the last patchset. But I agree at least a "no functional changes introduced" would be very beneficial. Thanks, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49

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

2017-07-20 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 5/7] qla2xxx: Simpify unregistration of FC-NVMe local/remote ports

2017-07-20 Thread Johannes Thumshirn
csi_qla_host *vha) > ql_log(ql_log_info, fcport->vha, 0x2114, "%s: fcport=%p\n", > __func__, fcport); > > + init_completion(>nvme_del_done); > nvme_fc_unregister_remoteport(fcport->nvme_remote_port); >

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

2017-07-19 Thread Johannes Thumshirn
g_io_hdr_t *hp) { + + pr_info("%s: dxfer_direction: %d, dxfer_len: %d\n", + __func__, hp->dxfer_direction, hp->dxfer_len); + switch (hp->dxfer_direction) { case SG_DXFER_NONE: if (hp->dxferp || hp->dxfer_len > 0) Than

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

2017-07-19 Thread Johannes Thumshirn
0, can we rely on dxferp being present? Thanks, 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, Gr

Re: [PATCH v2] scsi: qedf: Limit number of CQs

2017-07-25 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 v2 2/6] qla2xxx: Move function prototype to correct header

2017-07-25 Thread Johannes Thumshirn
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 v2 3/6] qla2xxx: Added change to enable ZIO for FC-NVMe devices

2017-07-25 Thread Johannes Thumshirn
Looks good to me, 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 Sm

Re: [PATCH v2 4/6] qla2xxx: Simpify unregistration of FC-NVMe local/remote ports

2017-07-25 Thread Johannes Thumshirn
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 v2 6/6] qla2xxx: Refactor usage of Active command arrays

2017-07-25 Thread Johannes Thumshirn
On Fri, Jul 21, 2017 at 09:32:28AM -0700, Himanshu Madhani wrote: > +typedef enum { > + TYPE_SRB, > + TYPE_TGT_CMD, > +} cmd_type_t; Minor Nitpick if you have to re-send, please no typedefs. Anyways, Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de> --

[PATCH] scsi: sg: only check for dxfer_len greater than 256M

2017-07-27 Thread Johannes Thumshirn
Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the sg_io_hdr_t::dxferp in order to determine if it is a valid request. The only way we can check for bad requests is by checking if the length exceeds 256M. Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de>

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

2017-07-26 Thread Johannes Thumshirn
care combinations was, that user-space could then easily crash the kernel. This is the reason I introduced sg_is_valid_dxfer(). It's sole purpuse was to avoid more CVEs, but unfortunately it turned into quite some regressions. Thanks, Johannes -- Johannes Thumshirn

Re: [PATCH, RESEND] scsi: lpfc: fix linking against modular NVMe support

2017-07-26 Thread Johannes Thumshirn
On Wed, Jul 26, 2017 at 11:17:09AM +0200, Arnd Bergmann wrote: > Ah, it was only below the "---" line, so I'll skip the resending > unless you want me > to add a comment in the Kconfig file. Nah no need, really. Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de>

Re: [PATCH, RESEND] scsi: lpfc: fix linking against modular NVMe support

2017-07-26 Thread Johannes Thumshirn
m, the current symbol can only be "m" or > "n", while "X=y" means it can have any value. > > So for "depends on X || X=n", the current symbol cannot be "y" when "X=m", > but otherwise can have any of t

Re: [PATCH, RESEND] scsi: lpfc: fix linking against modular NVMe support

2017-07-26 Thread Johannes Thumshirn
is black magic, but X || X=n ? I have no doubt you do the right thing, I just don't understand it. Thanks, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr.

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

2017-07-26 Thread Johannes Thumshirn
On Tue, Jul 25, 2017 at 01:25:07PM -0500, Jason L Tibbitts III wrote: > >>>>> "JT" == Johannes Thumshirn <jthumsh...@suse.de> writes: > ioctl(3, SG_IO, {interface_id='S', dxfer_direction=SG_DXFER_TO_DEV, > cmd_len=12, cmdp="\xa5\x00\x00\x00\x00\

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

2017-07-25 Thread Johannes Thumshirn
On Fri, Jul 21, 2017 at 02:23:16PM -0500, Jason L Tibbitts III wrote: > I can also apply the debugging patch and try again if that would give > you more useful information. Yes please (on top of the snippet I've sent you last). Thanks a lot, Johannes -- Johannes Thu

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

2017-07-21 Thread Johannes Thumshirn
Doug, On Wed, Jul 19, 2017 at 10:36:54AM +0200, Johannes Thumshirn wrote: > 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 poin

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: 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

<    5   6   7   8   9   10   11   12   13   14   >