[PATCHv3 3/3] scsi-trace: define ZBC_IN and ZBC_OUT

2016-03-24 Thread Hannes Reinecke
Add new trace functions for ZBC_IN and ZBC_OUT. Reviewed-by: Doug Gilbert Reviewed-by: Ewan D. Milne Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_trace.c | 70 + include/scsi/scsi_proto.h | 9 ++ include/trace/events/scsi.h | 2 ++

Re: [PATCH v2 0/5] mempool based chained scatterlist alloc/free api

2016-03-24 Thread James Bottomley
On Thu, 2016-03-24 at 08:09 -0700, Ming Lin wrote: > On Wed, Mar 23, 2016 at 12:40 AM, Christoph Hellwig > wrote: > > On Tue, Mar 22, 2016 at 03:03:11PM -0700, Ming Lin wrote: > > > From: Ming Lin > > > > > > The fist 4 patches make the SG related > > > definitions/structs/functions > > > in SCS

Re: [PATCH] scsi: Add intermediate STARGET_REMOVE state to scsi_target_state

2016-03-24 Thread Ewan D. Milne
On Thu, 2016-03-24 at 10:56 +0100, Johannes Thumshirn wrote: > The target state machine only knows 'STARGET_DEL', which is set once > scsi_target_destroy() is called. > However, by that time the structure is still part of the __stargets > list of the SCSI host, so any concurrent invocation will see

Re: [PATCH v2 0/5] mempool based chained scatterlist alloc/free api

2016-03-24 Thread Ming Lin
On Wed, Mar 23, 2016 at 12:40 AM, Christoph Hellwig wrote: > On Tue, Mar 22, 2016 at 03:03:11PM -0700, Ming Lin wrote: >> From: Ming Lin >> >> The fist 4 patches make the SG related definitions/structs/functions >> in SCSI code generic and the last patch move it to lib/sg_pool.c. >> >> I still ke

Re: [PATCHv2 3/3] scsi-trace: define ZBC_IN and ZBC_OUT

2016-03-24 Thread Douglas Gilbert
On 16-03-24 10:21 AM, Hannes Reinecke wrote: Add new trace functions for ZBC_IN and ZBC_OUT. Reviewed-by: Ewan D. Milne Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_trace.c | 70 + include/scsi/scsi_proto.h | 9 ++ include/trace/

[PATCHv2 1/3] scsi-trace: remove service action definitions

2016-03-24 Thread Hannes Reinecke
scsi_opcode_name() is displaying the opcode, not the service action. Reviewed-by: Ewan D. Milne Signed-off-by: Hannes Reinecke --- include/trace/events/scsi.h | 4 1 file changed, 4 deletions(-) diff --git a/include/trace/events/scsi.h b/include/trace/events/scsi.h index 079bd10..5c0d91f

[PATCHv2 0/3] scsi trace updates

2016-03-24 Thread Hannes Reinecke
Hi all, here are some some small updates to scsi tracing; it fixes the decoding for MAINTENANCE_IN and MAINTENANCE_OUT and adds definitions for the new ZBC_IN and ZBC_OUT commands. Changes to v1: - Add reviewed-by tags - use get_unaligned_be(32,64) As usual, comments and reviews welcome. Hanne

[PATCHv2 2/3] scsi-trace: Decode MAINTENANCE_IN and MAINTENANCE_OUT commands

2016-03-24 Thread Hannes Reinecke
Reviewed-by: Ewan D. Milne Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_trace.c | 91 +++ 1 file changed, 91 insertions(+) diff --git a/drivers/scsi/scsi_trace.c b/drivers/scsi/scsi_trace.c index 08bb47b..1d43888 100644 --- a/drivers/scsi/scsi

[PATCHv2 3/3] scsi-trace: define ZBC_IN and ZBC_OUT

2016-03-24 Thread Hannes Reinecke
Add new trace functions for ZBC_IN and ZBC_OUT. Reviewed-by: Ewan D. Milne Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_trace.c | 70 + include/scsi/scsi_proto.h | 9 ++ include/trace/events/scsi.h | 2 ++ 3 files changed, 81 inserti

Re: [PATCH 3/3] scsi-trace: define ZBC_IN and ZBC_OUT

2016-03-24 Thread Ewan D. Milne
On Thu, 2016-03-24 at 11:23 +0100, Hannes Reinecke wrote: > Add new trace functions for ZBC_IN and ZBC_OUT. > > Signed-off-by: Hannes Reinecke > --- > drivers/scsi/scsi_trace.c | 87 > + > include/scsi/scsi_proto.h | 9 + > include/trace/even

Re: [PATCH 1/3] scsi-trace: remove service action definitions

2016-03-24 Thread Ewan D. Milne
On Thu, 2016-03-24 at 11:23 +0100, Hannes Reinecke wrote: > scsi_opcode_name() is displaying the opcode, not the service > action. > > Signed-off-by: Hannes Reinecke > --- > include/trace/events/scsi.h | 4 > 1 file changed, 4 deletions(-) > > diff --git a/include/trace/events/scsi.h b/inc

Re: [PATCH 2/3] scsi-trace: Decode MAINTENANCE_IN and MAINTENANCE_OUT commands

2016-03-24 Thread Ewan D. Milne
On Thu, 2016-03-24 at 11:23 +0100, Hannes Reinecke wrote: > Signed-off-by: Hannes Reinecke > --- > drivers/scsi/scsi_trace.c | 96 > +++ > 1 file changed, 96 insertions(+) > > diff --git a/drivers/scsi/scsi_trace.c b/drivers/scsi/scsi_trace.c > index

RE: [BUG] mpt2sas: driver init fails on kernel >=4.2 for 9211-8i IT

2016-03-24 Thread Jason Taylor
The last update we have from VMware is that the fix will be in 6.0p3/5.5p8 - both of which are targeted for a mid year release. -Original Message- From: Thomas Gleixner [mailto:t...@linutronix.de] Sent: Thursday, March 24, 2016 2:06 AM To: Matthias Prager Cc: Sreekanth Reddy ; linux-scs

[PATCH 3/3] scsi-trace: define ZBC_IN and ZBC_OUT

2016-03-24 Thread Hannes Reinecke
Add new trace functions for ZBC_IN and ZBC_OUT. Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_trace.c | 87 + include/scsi/scsi_proto.h | 9 + include/trace/events/scsi.h | 2 ++ 3 files changed, 98 insertions(+) diff --git a/drivers/

[PATCH 1/3] scsi-trace: remove service action definitions

2016-03-24 Thread Hannes Reinecke
scsi_opcode_name() is displaying the opcode, not the service action. Signed-off-by: Hannes Reinecke --- include/trace/events/scsi.h | 4 1 file changed, 4 deletions(-) diff --git a/include/trace/events/scsi.h b/include/trace/events/scsi.h index 079bd10..5c0d91f 100644 --- a/include/trace/e

[PATCH 0/3] scsi trace updates

2016-03-24 Thread Hannes Reinecke
Hi all, here are some some small updates to scsi tracing; it fixes the decoding for MAINTENANCE_IN and MAINTENANCE_OUT and adds definitions for the new ZBC_IN and ZBC_OUT commands. As usual, comments and reviews welcome. Hannes Reinecke (3): scsi-trace: remove service action definitions scsi

[PATCH 2/3] scsi-trace: Decode MAINTENANCE_IN and MAINTENANCE_OUT commands

2016-03-24 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_trace.c | 96 +++ 1 file changed, 96 insertions(+) diff --git a/drivers/scsi/scsi_trace.c b/drivers/scsi/scsi_trace.c index 08bb47b..b50cfe8 100644 --- a/drivers/scsi/scsi_trace.c +++ b/drivers/scsi/

Re: UFS V11 patch-set

2016-03-24 Thread Joao Pinto
On 3/23/2016 9:16 PM, Martin K. Petersen wrote: >> "Joao" == Joao Pinto writes: > > Joao, > > Joao> Isn't it possible to be merged into a ufs-dwc branch in the SCSI > Joao> Git tree that could be pulled later, like Bjorn did in the PCIe > Joao> RC? > > I just started 4.7/scsi-queue so now i

[PATCH] scsi: Add intermediate STARGET_REMOVE state to scsi_target_state

2016-03-24 Thread Johannes Thumshirn
The target state machine only knows 'STARGET_DEL', which is set once scsi_target_destroy() is called. However, by that time the structure is still part of the __stargets list of the SCSI host, so any concurrent invocation will see this as a valid target, causing an access to freed memory. This pat

Re: sd: Resize-fsync() race fails IO

2016-03-24 Thread Sebastian Parschauer
On 24.03.2016 05:11, Vladislav Bolkhovitin wrote: [snip] +CC: linux-scsi, hch Hi SCSI developers, I've debugged this further with a v4.5 kernel and full SCSI command logging enabled on the initiator side. It seems to be a SCSI issue. SCSI commands succeed but resu

Re: [BUG] mpt2sas: driver init fails on kernel >=4.2 for 9211-8i IT

2016-03-24 Thread Matthias Prager
Am 24.03.2016 um 07:06 schrieb Thomas Gleixner: > On Thu, 24 Mar 2016, Matthias Prager wrote: >> The timeout happens reliably after two warm boots with a 'bad' kernel >> after coming from a 'good' kernel, and also after one cold boot with a >> 'bad' kernel (meaning cold booting a 'bad' kernel leads