Re: [PATCH 02/17 v2] lpfc: Correct embedded io wq element size

2016-10-13 Thread Johannes Thumshirn
ine after the Signed-off-bys. > > Signed-off-by: Dick Kennedy > Signed-off-by: James Smart > --- Otherwise, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE L

Re: [PATCH 03/17 v2] lpfc: Fix sg_reset on SCSI device causing kernel crash

2016-10-13 Thread Johannes Thumshirn
ed per review: > Revised lpfc_send_taskmgmt() to check rdata > > Signed-off-by: Dick Kennedy > Signed-off-by: James Smart > --- > drivers/scsi/lpfc/lpfc_scsi.c | 22 +- > 1 file changed, 13 insertions(+), 9 deletions(-) > Looks good, Reviewed

Re: [PATCH 01/17 v2] Fix few small typos in lpfc_scsi.c

2016-10-13 Thread Johannes Thumshirn
On Wed, Oct 12, 2016 at 01:14:04PM -0700, James Smart wrote: > > From: "Milan P. Gandhi" > > This patch does a cleanup and fixes few small typos in lpfc_scsi.c > > Signed-off-by: Milan P. Gandhi > Signed-off-by: James Smart > --- > Looks

Re: [PATCH 15/17 v2] lpfc: Synchronize link speed with boot driver

2016-10-13 Thread Johannes Thumshirn
s an unfortunate collision with my bsg rewrite series. Please remind me of that fact when your patches are merged and mine aren't yet. But it's a nice test case :-). > +{ > + struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; Please use shost_priv() here

Re: [PATCH 14/17 v2] lpfc: Correct panics with eh_timeout and eh_deadline

2016-10-13 Thread Johannes Thumshirn
11 insertions(+), 7 deletions(-) Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smitha

Re: [PATCH 16/17 v2] lpfc: Fix fw download on SLI-4 FC adapters

2016-10-13 Thread Johannes Thumshirn
"3022 Invalid FW image found. " "Magic:%x Type:%x ID:%x Size %d %ld\n", lpfc_grp_hdr_file_type, lpfc_grp_hdr_id, size, fw->size); rc = -EINVAL; goto release_out

Re: [PATCH v2 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-13 Thread Johannes Thumshirn
On Wed, Oct 12, 2016 at 05:54:45PM +0200, Steffen Maier wrote: > Hi Johannes, > > On 10/12/2016 03:06 PM, Johannes Thumshirn wrote: > > This series converts the current bsg usage in the FibreChannel drivers over > > to use bsg-lib. SAS will follow once FC is in a good enough

Re: [PATCH 21/24] fcoe: catch invalid values for the 'enabled' attribute

2016-10-13 Thread Johannes Thumshirn
On Thu, Oct 13, 2016 at 03:10:57PM +0200, Hannes Reinecke wrote: > The 'enabled' sysfs attribute only accepts the values '0' and '1', > so we should error out any other values. > > Signed-off-by: Hannes Reinecke > --- Acked-by

Re: [PATCH 05/24] libfc: sanitize E_D_TOV and R_A_TOV setting

2016-10-13 Thread Johannes Thumshirn
cke > --- Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nü

Re: Patch: [Open-FCoE] Revert commit 3e22760d4db6fd89e0be46c3d132390a251da9c6 due to performance issues

2016-10-13 Thread Johannes Thumshirn
d-by: Ewan Milne > Suggested-by: Curtis Taylor > Tested-by: Laurence Oberman > Signed-off-by: Laurence Oberman > Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053

Re: [PATCH 10/24] libfc: Rework PRLI handling

2016-10-13 Thread Johannes Thumshirn
e need to disable target functionality. > > Signed-off-by: Hannes Reinecke > --- Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nür

Re: [PATCH 12/24] libfc: Clarify ramp-down messages

2016-10-13 Thread Johannes Thumshirn
On Thu, Oct 13, 2016 at 03:10:48PM +0200, Hannes Reinecke wrote: > When the queue depth is reduced we should print out the reason > for this; it might be due to a queue full condition. > > Signed-off-by: Hannes Reinecke > --- Acked-by: Johannes Thumshirn -- Joh

Re: [PATCH v2 08/16] scsi: fc: implement kref backed reference counting

2016-10-13 Thread Johannes Thumshirn
On Thu, Oct 13, 2016 at 01:42:06PM +0200, Hannes Reinecke wrote: > On 10/12/2016 03:06 PM, Johannes Thumshirn wrote: > > Implement kref backed reference counting instead of rolling our own. This > > elimnates the need of the following fields in 'struct fc_bsg_job': > &

[PATCH v3 07/16] scsi: libfc: don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone()

2016-10-13 Thread Johannes Thumshirn
Don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone() as fc_bsg_jobdone() calls blk_complete_requeust() which raises a soft-IRQ that ends up in fc_bsg_sofirq_done() and fc_bsg_softirq_done() sets the FC_RQST_STATE_DONE flag. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Rei

[PATCH v3 15/16] scsi: fc: move FC transport's bsg code to bsg-lib

2016-10-13 Thread Johannes Thumshirn
Now that all conversions are done, move the FibreChannel bsg code over to the bsg library. This patch is derived from work done by Mike Christie in 2011 [1] but only the iscsi parts got merged back then. [1] http://marc.info/?l=linux-scsi&m=131149780921009&w=2 Signed-off-by: Johannes T

[PATCH v3 16/16] block: unexport bsg_softirq_done() again

2016-10-13 Thread Johannes Thumshirn
Unexport bsg_softirq_done() again, we don't need it outside of bsg-lib.c anymore now that scsi_transport_fc is a pure bsg-lib client. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 +-- include/linux/bsg-lib.h | 1 - 2 files changed, 1 inse

[PATCH v3 11/16] scsi: fc: Use bsg_destroy_job

2016-10-13 Thread Johannes Thumshirn
fc_destroy_bsgjob() and bsg_destroy_job() are now 1:1 copies, so use the later. As bsg_destroy_job() comes from bsg-lib we need to select it in Kconfig once CONFOG_SCSI_FC_ATTRS is active. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 7

[PATCH v3 14/16] block: add bsg_job_put() and bsg_job_get()

2016-10-13 Thread Johannes Thumshirn
Add bsg_job_put() and bsg_job_get() so don't need to export bsg_destroy_job() any more. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 17 ++--- drivers/scsi/scsi_transport_fc.c | 4 ++-- include/linux/bsg-lib.h

[PATCH v3 06/16] scsi: fc: provide fc_bsg_to_rport() helper

2016-10-13 Thread Johannes Thumshirn
Provide fc_bsg_to_rport() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also move all LLDDs to use the new helper. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 5 +++-- drivers

[PATCH v3 09/16] block: add reference counting for struct bsg_job

2016-10-13 Thread Johannes Thumshirn
Add reference counting to 'struct bsg_job' so we can implement a reuqest timeout handler for bsg_jobs, which is needed for Fibre Channel. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 7 +-- include/linux/bsg-lib.h | 2 ++ 2 files

[PATCH v3 05/16] scsi: fc: provide fc_bsg_to_shost() helper

2016-10-13 Thread Johannes Thumshirn
Provide fc_bsg_to_shost() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also use this little helper in the LLDDs. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 4 +-- drivers/scs

[PATCH v3 13/16] scsi: fc: use bsg_job_done

2016-10-13 Thread Johannes Thumshirn
fc_bsg_jobdone() and bsg_job_done() are 1:1 copies now so use the bsg-lib one instead of the FC private implementation. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/scsi/bfa/bfad_bsg.c | 4 ++-- drivers/scsi/ibmvscsi

[PATCH v3 08/16] scsi: fc: implement kref backed reference counting

2016-10-13 Thread Johannes Thumshirn
Implement kref backed reference counting instead of rolling our own. This elimnates the need of the following fields in 'struct fc_bsg_job': * ref_cnt * state_flags * job_lock bringing us close to unification of 'struct fc_bsg_job' and 'struct bsg_job'. Sig

[PATCH v3 10/16] scsi: change FC drivers to use 'struct bsg_job'

2016-10-13 Thread Johannes Thumshirn
Change FC drivers to use 'struct bsg_job' from bsg-lib.h instead of 'struct fc_bsg_job' from scsi_transport_fc.h and remove 'struct fc_bsg_job'. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_ext.h | 4 +-- drivers

[PATCH v3 12/16] scsi: fc: use bsg_softirq_done

2016-10-13 Thread Johannes Thumshirn
bsg_softirq_done() and fc_bsg_softirq_done() are copies of each other, so ditch the fc specific one. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 15 ++- include/linux/bsg-lib.h

[PATCH v3 03/16] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-10-13 Thread Johannes Thumshirn
ff-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/scsi/bfa/bfad_bsg.c | 4 ++-- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- drivers/scsi/libfc/fc_lport.c| 4 ++-- drivers/scsi/lpfc/lpfc_bsg.c

[PATCH v3 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-13 Thread Johannes Thumshirn
BSGLIB * Make bsg_job_get() call kref_get_unless_zero() and use it in scsi_transport_fc.c Changes to v2: * Add Hannes' Reviewd-by tags * Address Hannes' comment about kref handling in 8/16 * Move CONFIG_BLK_DEV_BSGLIB dependency to patch 12/16 as per 0day results Johannes Thumshirn

[PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Johannes Thumshirn
Don't use fc_bsg_job::request and fc_bsg_job::reply directly, but use helper variables bsg_request and bsg_reply. This will be helpfull when transitioning to bsg-lib. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 9 +- drivers/scs

[PATCH v3 04/16] scsi: Unify interfaces of fc_bsg_jobdone and bsg_job_done

2016-10-13 Thread Johannes Thumshirn
Unify the interfaces of fc_bsg_jobdone and bsg_job_done. This will reduce the diff when moving from 'struct fc_bsg_job' to a plain 'struct bsg_job' later on. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers

[PATCH v3 01/16] scsi: Get rid of struct fc_bsg_buffer

2016-10-13 Thread Johannes Thumshirn
struct fc_bsg_buffer is just a clone of struct bsg_buffer from bsg-lib, so use this one instead. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/scsi/lpfc/lpfc_bsg.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 2 +- include/scsi/scsi_transport_fc.h | 12

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Johannes Thumshirn
scsi: Get rid of struct > fc_bsg_buffer > > $ git bisect good > > 3087864ce3d7282f59021245d8a5f83ef1caef18 is the first bad commit > > commit 3087864ce3d7282f59021245d8a5f83ef1caef18 > > Author: Johannes Thumshirn > > Date: Wed Oct 12 15:06:28 2016 +0200 > > > > scsi: don't u

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Johannes Thumshirn
On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: > Hm, still behaves for me like I reported for v2: > http://marc.info/?l=linux-scsi&m=147637177902937&w=2 > Well given what you've wrote for v2 it's kinda expected. Byte, Johan

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-14 Thread Johannes Thumshirn
x27;re assigning job->request as req->cmd and job->request_len = req->cmd_len. But without checkinf job->request_len we don't know whether we're save to touch job->request (a.k.a. bsg_request). In the meanwhile I try to reproduce your report here. Thanks, Johannes --

Re: [PATCH v3 15/17] lpfc: Synchronize link speed with boot driver

2016-10-14 Thread Johannes Thumshirn
ide the settings with its own if instructed by > user space (via bsg), with the new values being picked up by the > boot driver. > > Signed-off-by: Dick Kennedy > Signed-off-by: James Smart > --- > v3 mods: > parens cleanup > use shost_priv() on new code > Tha

Re: [PATCH v3 16/17] lpfc: Fix fw download on SLI-4 FC adapters

2016-10-14 Thread Johannes Thumshirn
Kennedy > Signed-off-by: James Smart > --- > v3 mods: > code cleanup: parsing image header fields Thanks, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 S

Re: [PATCH 2/3] scsi: allow LLDDs to expose the queue mapping to blk-mq

2016-10-17 Thread Johannes Thumshirn
ag_set *set) > free_cpumask_var(cpus); > return 0; > } > +EXPORT_SYMBOL_GPL(blk_mq_map_queues); > > /* > * We have no quick way of doing reverse lookups. This is only used at Shouldn't this hunk go into the previous patch?

Re: [PATCH 1/3] blk-mq: export blk_mq_map_queues

2016-10-17 Thread Johannes Thumshirn
t blk_mq_reinit_tagset(struct blk_mq_tag_set *set); > > +int blk_mq_map_queues(struct blk_mq_tag_set *set); > void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int > nr_hw_queues); > > /* > -- > 2.1.4 See comment on patch 2, otherwise Reviewed-by:

Re: [PATCH 3/3] smartpqi: switch to pci_alloc_irq_vectors

2016-10-17 Thread Johannes Thumshirn
On Sat, Oct 15, 2016 at 10:47:21AM +0200, Christoph Hellwig wrote: > Which cleans up a lot of the MSI-X handling, and allows us to use the > PCI IRQ layer provided vector mapping, which we can then expose to blk-mq. > > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Joh

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-17 Thread Johannes Thumshirn
er is what the standard expects to be > used here, and this shuts up the warning. > > Fixes: 679053c651fb ("scsi: lpfc: Fix fw download on SLI-4 FC adapters") > Signed-off-by: Arnd Bergmann > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

Re: `rmmod mpt3sas` leads to backtraces 'fs/sysfs/group.c:237 sysfs_remove_group+0xa0/0xb0'

2016-10-17 Thread Johannes Thumshirn
ich commit introduces this? 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: Need some pointers to debug a target hang

2016-10-18 Thread Johannes Thumshirn
[+Cc Robert LeBlanc and full quote for context ] On Mon, Oct 17, 2016 at 10:57:55PM -0700, Nicholas A. Bellinger wrote: > Hello Johannes, > > Apologies for the extended delayed follow-up on this bug report. > > On Fri, 2016-09-02 at 16:14 +0200, Johannes Thumshirn wrote: &g

Re: [PATCH] fcoe: Fixup missing initialisation in fcoe_dcb_create()

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 08:39:16AM +0200, Hannes Reinecke wrote: > Found by 0-day robot. > > Fixes: a99ac6e715bc ("scsi: fcoe: set default TC priority") > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn

Re: [PATCH 01/20] libfc: Replace ->seq_els_rsp_send callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:35AM +0200, Hannes Reinecke wrote: > The 'seq_els_rsp_send' callback only ever had one implementation, > so we might as well drop it and use the function directly. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes

Re: [PATCH 01/20] libfc: Replace ->seq_els_rsp_send callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:35AM +0200, Hannes Reinecke wrote: > The 'seq_els_rsp_send' callback only ever had one implementation, > so we might as well drop it and use the function directly. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes

Re: [PATCH 02/20] libfc: Replace ->lport_reset callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:36AM +0200, Hannes Reinecke wrote: > The ->lport_reset callback only ever had one implementation, > which already is exported. So remove it and use the function > directly. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-b

Re: [PATCH 03/20] libfc: Replace ->lport_recv with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:37AM +0200, Hannes Reinecke wrote: > The ->lport_recv callback only ever had one implementation, > so call the function directly and remove the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 04/20] libfc: Replace ->exch_seq_send callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:38AM +0200, Hannes Reinecke wrote: > The ->exch_seq_send callback only ever had one implementation, > so we can call the function directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumsh

Re: [PATCH 05/20] libfc: Replace ->rport_destroy callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:39AM +0200, Hannes Reinecke wrote: > The ->rport_destroy callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumsh

Re: [PATCH 06/20] libfc: Replace ->rport_lookup callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:40AM +0200, Hannes Reinecke wrote: > The ->rport_lookup callback only ever had a single implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumsh

Re: [PATCH 08/20] libfc: Replace ->rport_create callback with function call

2016-10-18 Thread Johannes Thumshirn
fc_rport_create() with fc_remote_port_create() so the scsi_transport_fc.c patch isn't needed? -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer,

Re: [PATCH 09/20] libfc: Replace ->rport_login callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:43AM +0200, Hannes Reinecke wrote: > The ->rport_login callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 10/20] libfc: Replace ->rport_logoff callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:44AM +0200, Hannes Reinecke wrote: > The ->rport_logoff callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 11/20] libfc: Replace ->rport_recv_req callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:45AM +0200, Hannes Reinecke wrote: > The ->rport_recv_req callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumsh

Re: [PATCH 12/20] libfc: Replace ->rport_flush_queue callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:46AM +0200, Hannes Reinecke wrote: > The ->rport_flush_queue callback only ever had a single > implementation, so we can as well call it directly and > drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-b

Re: [PATCH 13/20] libfc: Remove fc_rport_init()

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:47AM +0200, Hannes Reinecke wrote: > Function is empty now and can be removed. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthums

Re: [PATCH 14/20] libfc: Replace ->seq_send callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:48AM +0200, Hannes Reinecke wrote: > The ->seq_send callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 15/20] libfc: Replace ->seq_exch_abort callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:49AM +0200, Hannes Reinecke wrote: > The ->seq_exch_abort callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumsh

Re: [PATCH 16/20] libfc: Replace ->exch_done callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:50AM +0200, Hannes Reinecke wrote: > The ->exch_done callback only ever had one implementation, > so we can as well call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 17/20] libfc: Replace ->seq_start_next callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:51AM +0200, Hannes Reinecke wrote: > The ->seq_start_next callback only ever had one implementation, > so call the function directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 19/20] libfc: Replace ->seq_assign callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:53AM +0200, Hannes Reinecke wrote: > The ->seq_assign callback only ever had one implementation, > so call the function directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 18/20] libfc: Replace ->seq_set_resp callback with direct function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:52AM +0200, Hannes Reinecke wrote: > The ->seq_set_resp callback only ever had one implementation, > so call it directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 20/20] libfc: Replace ->seq_release callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:54AM +0200, Hannes Reinecke wrote: > The ->seq_release callback only ever had one implementation, > so call the function directly and drop the callback. > > Signed-off-by: Hannes Reinecke > --- Looks good, Acked-by: Johannes Thumshirn --

Re: [PATCH 08/20] libfc: Replace ->rport_create callback with function call

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 12:23:22PM +0200, Hannes Reinecke wrote: > On 10/18/2016 10:54 AM, Johannes Thumshirn wrote: > > On Tue, Oct 18, 2016 at 10:01:42AM +0200, Hannes Reinecke wrote: > >> The ->rport_create callback only ever had a single implementation, > >> so w

Re: [PATCH 07/20] scsi_transport_fc: rename 'fc_rport_create' to 'fc_remote_port_create'

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 10:01:41AM +0200, Hannes Reinecke wrote: > Required for the next patch. > > Signed-off-by: Hannes Reinecke > --- Given the comment on the next patch, Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthums

Re: Need some pointers to debug a target hang

2016-10-18 Thread Johannes Thumshirn
On Tue, Oct 18, 2016 at 09:01:34AM +0200, Johannes Thumshirn wrote: [...] > > > > This is likely the missing SCF_ACK_KREF assignment in >= v4.1.y: > > > > http://www.spinics.net/lists/target-devel/msg13530.html Sorry to disappoint you but it didn't fix my issu

Re: [RFC 1/6] qed: Add support for hardware offloaded iSCSI.

2016-10-19 Thread Johannes Thumshirn
"Failed to allocate tasks information\n"); > + qed_iscsi_stop(cdev); > + return -ENOMEM; > + } > + > + rc = qed_cxt_get_tid_mem_info(QED_LEADING_HWFN(cdev), > +

Re: [RFC 5/6] qedi: Add support for iSCSI session management.

2016-10-19 Thread Johannes Thumshirn
OFLDCONN_FAILED) || > + (qedi_ep->state == > + EP_STATE_OFLDCONN_COMPL)), > + msecs_to_jiffies(timeout_ms)); Maybe: #define QEDI_OLDCON_STATE(q) ((q)->state == E

Re: [RFC 3/6] qedi: Add QLogic FastLinQ offload iSCSI driver framework.

2016-10-19 Thread Johannes Thumshirn
"Unable to start tmf thread!\n"); > + rc = -ENODEV; > + goto free_cid_que; > + } > + > + sprintf(host_buf, "qedi_ofld%d", qedi->shost->host_no); > + qedi->offload_thread = create_workqueue(host_buf); &g

Re: [RFC 2/6] qed: Add iSCSI out of order packet handling.

2016-10-19 Thread Johannes Thumshirn
nfo, > + p_buffer); > + break; > + } > } > + > + /* Submit Tx buffers here */ > + while ((p_buffer = qed_ooo_get_ready_buffer(p_hwfn, > +

[PATCH RFC] fcping: allow pings using FC_BSG_RPT_ELS

2016-10-19 Thread Johannes Thumshirn
fcping uses FC-ELS to perform pings. FC ELS is a host as well as rport service, so allow the rport version of the BSG ioctl() as well as the host version. Signed-off-by: Johannes Thumshirn --- fcping.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a

Re: [RFC 1/6] qed: Add support for hardware offloaded iSCSI.

2016-10-20 Thread Johannes Thumshirn
you do not have strong > objections, I would like to keep it this way. No strong objections, I just don't think these lengthy blocks are readable, but I don't want to do too much bikeshedding about it. Thanks, Johannes -- Johannes Thumshirn

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-25 Thread Johannes Thumshirn
On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: > > Hm, still behaves for me like I reported for v2: > > http://marc.info/?l=linux-scsi&m=147637177902937&w=2 > > Hi Steffen, > &g

Re: [PATCH 07/12] dm: Use BLK_MQ_S_STOPPED instead of QUEUE_FLAG_STOPPED in blk-mq code

2016-10-27 Thread Johannes Thumshirn
; Signed-off-by: Bart Van Assche > Reviewed-by: Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409

Re: [PATCH 10/12] SRP transport, scsi-mq: Wait for .queue_rq() if necessary

2016-10-27 Thread Johannes Thumshirn
Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21

Re: [PATCH 09/12] SRP transport: Move queuecommand() wait code to SCSI core

2016-10-27 Thread Johannes Thumshirn
Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham No

Re: [PATCH 06/12] blk-mq: Add a kick_requeue_list argument to blk_mq_requeue_request()

2016-10-27 Thread Johannes Thumshirn
by Christoph Hellwig. > > Signed-off-by: Bart Van Assche > Cc: Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH,

Re: [PATCH 02/12] blk-mq: Introduce blk_mq_hctx_stopped()

2016-10-27 Thread Johannes Thumshirn
On Wed, Oct 26, 2016 at 03:51:33PM -0700, Bart Van Assche wrote: > Multiple functions test the BLK_MQ_S_STOPPED bit so introduce > a helper function that performs this test. > > Signed-off-by: Bart Van Assche > Cc: Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn

Re: [PATCH 04/12] blk-mq: Move more code into blk_mq_direct_issue_request()

2016-10-27 Thread Johannes Thumshirn
that function instead of looking it up a > second time. These changes avoid that code has to be duplicated > in the next patch. > > Signed-off-by: Bart Van Assche > Cc: Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

Re: [PATCH 04/12] blk-mq: Move more code into blk_mq_direct_issue_request()

2016-10-27 Thread Johannes Thumshirn
that function instead of looking it up a > second time. These changes avoid that code has to be duplicated > in the next patch. > > Signed-off-by: Bart Van Assche > Cc: Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

Re: [PATCH 01/12] blk-mq: Do not invoke .queue_rq() for a stopped queue

2016-10-27 Thread Johannes Thumshirn
Ming Lei > Signed-off-by: Bart Van Assche > Reviewed-by: Christoph Hellwig Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfelds

Re: [PATCH 1/4] hpsa: correct lockup detector pci_disable_device

2016-10-27 Thread Johannes Thumshirn
y is pci_disable_device() not checking for it? It does: 1607 void pci_disable_device(struct pci_dev *dev) 1608 { [...] 1615 dev_WARN_ONCE(&dev->dev, atomic_read(&dev->enable_cnt) <= 0, 1616 "disabling already-disabled device"); [...]

Re: [PATCH 03/12] blk-mq: Introduce blk_mq_queue_stopped()

2016-10-27 Thread Johannes Thumshirn
are contexts of a blk-mq queue have been stopped. > > Signed-off-by: Bart Van Assche > Reviewed-by: Hannes Reinecke Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+

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

2016-10-27 Thread Johannes Thumshirn
an Assche > Cc: Hannes Reinecke > Cc: Johannes Thumshirn > Cc: Sagi Grimberg > Cc: > --- [...] > > +static void scsi_remove_device_async(struct scsi_device *sdev) > +{ > + if (scsi_device_get(sdev) < 0) Nit: the < 0 could be dropped, scsi_device_get ret

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

2016-10-28 Thread Johannes Thumshirn
On Thu, Oct 27, 2016 at 08:38:03AM -0700, Bart Van Assche wrote: > On 10/27/2016 02:46 AM, Johannes Thumshirn wrote: > > On Wed, Oct 26, 2016 at 11:44:51AM -0700, Bart Van Assche wrote: > > > +static void scsi_remove_device_async(struct scsi_device *sdev) > > > +{ >

Re: Section mismatch in reference from the function generic_NCR5380_isa_match()

2016-10-29 Thread Johannes Thumshirn
us' tree already. [1] 77f18a871 ("scsi: NCR5380: no longer mark irq probing as __init") Byte, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr.

Re: Need some pointers to debug a target hang

2016-10-29 Thread Johannes Thumshirn
On Sat, Oct 29, 2016 at 03:53:25PM -0700, Nicholas A. Bellinger wrote: > Hi Johannes & Zhu, > > On Tue, 2016-10-18 at 23:29 -0700, Nicholas A. Bellinger wrote: > > On Tue, 2016-10-18 at 19:35 +0200, Johannes Thumshirn wrote: > > > On Tue, Oct 18, 2016 at 09:01:34AM +02

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-30 Thread Johannes Thumshirn
ere bsg_reply is NULL. > The assignment tries to write to memory at address NULL causing the kernel > page fault. > > Does your suggested change for [PATCH v3 02/16], shuffling the > job->request_len checks, address above kernel page fault? This is what I hope at least. I

Re: Need some pointers to debug a target hang

2016-10-30 Thread Johannes Thumshirn
On Sat, Oct 29, 2016 at 03:53:25PM -0700, Nicholas A. Bellinger wrote: > Hi Johannes & Zhu, > > On Tue, 2016-10-18 at 23:29 -0700, Nicholas A. Bellinger wrote: > > On Tue, 2016-10-18 at 19:35 +0200, Johannes Thumshirn wrote: > > > On Tue, Oct 18, 2016 at 09:01:34AM +02

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-03 Thread Johannes Thumshirn
On Thu, Nov 03, 2016 at 08:17:51AM -0700, Christoph Hellwig wrote: > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > > On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: > > > Hm, still behaves for me like I reported for v2: > > > http:

Re: [PREEMPT-RT] [REPOST PATCH 1/5] scsi: bnx2i: convert to kworker

2016-11-07 Thread Johannes Thumshirn
2i patches as well (althoug I wrote "for the whole series"). Testing was IIRC booting from the FCoE LUN and the doing a series of fio tests for about an hour. Byte, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de

[PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-08 Thread Johannes Thumshirn
: $ cat /sys/class/fc_host/host8/statistics/seconds_since_last_reset 0x10624dd2f1977b4 Take this into account so /sys/class/fc_host/hostX/statistics/seconds_since_last_reset is sane again. Fixes: 540eb1eef ('scsi: libfc: fix seconds_since_last_reset calculation') Signed-off-by: Jo

Re: [PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-15 Thread Johannes Thumshirn
et is computed. Shouldn't seconds_since_last_reset > be computed as follows? > > fc_stats->seconds_since_last_reset = (jiffies - boot_time) / HZ; But what happens when jiffies - boot_time becomes negative? Then we reintroduce the bug again and have 'fcoeadm -s' show weird va

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > > On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: > > > Hm, still behaves for me like I reported for v2: > > > http:

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 03:31:27PM +0100, Steffen Maier wrote: > Hi Johannes, > > On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: > > On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > > > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wr

Re: [PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 02:50:17PM +, Bart Van Assche wrote: > On Tue, 2016-11-15 at 10:18 +0100, Johannes Thumshirn wrote: > > On Tue, Nov 08, 2016 at 03:04:43PM +, Bart Van Assche wrote: > > > I think the above code will miscalculate seconds_since_last_reset > &

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 03:31:27PM +0100, Steffen Maier wrote: > Hi Johannes, > > On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: > > On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > > > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wr

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-16 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 04:39:33PM +0100, Johannes Thumshirn wrote: > On Tue, Nov 15, 2016 at 03:31:27PM +0100, Steffen Maier wrote: > > Hi Johannes, > > > > On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: > > > On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes T

Re: [PATCH] mvsas: fix command_active typo

2016-11-16 Thread Johannes Thumshirn
&' makes the code look reasonable, as we check the > command bit before setting and printing it. > > Fixes: a4632aae8b66 ("[SCSI] mvsas: Add new macros and functions") > Signed-off-by: Arnd Bergmann > --- Looks reasonable, Reviewed-by: Johannes Thumshirn -- Jo

Re: [PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-17 Thread Johannes Thumshirn
On Wed, Nov 16, 2016 at 05:58:14PM +0100, Arnd Bergmann wrote: > On Tuesday, November 15, 2016 4:05:31 PM CET Johannes Thumshirn wrote: > > On Tue, Nov 15, 2016 at 02:50:17PM +, Bart Van Assche wrote: > > > On Tue, 2016-11-15 at 10:18 +0100, Johannes Thumshirn wrote: >

[PATCH v4 03/15] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-11-17 Thread Johannes Thumshirn
e can remove the function pointer from struct fc_bsg_job as well. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Acked-by: Tyrel Datwyler --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/scsi/bfa/bfad_bsg.c | 6 ++-- drivers/scsi/ibm

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