All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
       [not found] <1527191377-11513-1-git-send-email-maxg@mellanox.com>
@ 2018-05-24 19:49 ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-24 19:49 UTC (permalink / raw)
  To: idanb, oren, israelr, nitzanc, leonro, jgg, sergeygo
  Cc: vladimirk, linux-internal, Max Gurtovoy, stable

A copy/paste bug (probably) caused setting of an app_tag check mask
in case where a ref_tag check was needed.

Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
Cc: stable@vger.kernel.org
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
---
 drivers/infiniband/ulp/isert/ib_isert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index fff40b0..d8b6bde 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -2108,7 +2108,7 @@
 
 	sig_attrs->check_mask =
 	       (se_cmd->prot_checks & TARGET_DIF_CHECK_GUARD  ? 0xc0 : 0) |
-	       (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x30 : 0) |
+	       (se_cmd->prot_checks & TARGET_DIF_CHECK_APPTAG ? 0x30 : 0) |
 	       (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x0f : 0);
 	return 0;
 }
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-27 15:50   ` Max Gurtovoy
@ 2018-05-30 21:49     ` Sagi Grimberg
  -1 siblings, 0 replies; 33+ messages in thread
From: Sagi Grimberg @ 2018-05-30 21:49 UTC (permalink / raw)
  To: Max Gurtovoy, jgg, keith.busch, linux-nvme, hch
  Cc: leon, oren, idanb, vladimirk, stable

btw, please CC target-devel for isert patches in the future. Also the
subject prefix is usually iser-target (not a must though)

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-30 21:49     ` Sagi Grimberg
  0 siblings, 0 replies; 33+ messages in thread
From: Sagi Grimberg @ 2018-05-30 21:49 UTC (permalink / raw)


btw, please CC target-devel for isert patches in the future. Also the
subject prefix is usually iser-target (not a must though)

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-27 15:50   ` Max Gurtovoy
@ 2018-05-30 21:47     ` Sagi Grimberg
  -1 siblings, 0 replies; 33+ messages in thread
From: Sagi Grimberg @ 2018-05-30 21:47 UTC (permalink / raw)
  To: Max Gurtovoy, jgg, keith.busch, linux-nvme, hch
  Cc: leon, oren, idanb, vladimirk, stable

Looks good,

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-30 21:47     ` Sagi Grimberg
  0 siblings, 0 replies; 33+ messages in thread
From: Sagi Grimberg @ 2018-05-30 21:47 UTC (permalink / raw)


Looks good,

Reviewed-by: Sagi Grimberg <sagi at grimberg.me>

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-30  8:07                         ` Max Gurtovoy
@ 2018-05-30 15:30                           ` Jason Gunthorpe
  -1 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-30 15:30 UTC (permalink / raw)
  To: Max Gurtovoy
  Cc: Martin K. Petersen, Christoph Hellwig, keith.busch, linux-nvme,
	sagi, leon, oren, idanb, vladimirk, stable

On Wed, May 30, 2018 at 11:07:17AM +0300, Max Gurtovoy wrote:
> 
> 
> On 5/30/2018 1:19 AM, Jason Gunthorpe wrote:
> >On Tue, May 29, 2018 at 06:11:18PM -0400, Martin K. Petersen wrote:
> >>
> >>Jason,
> >>
> >>>>we must wait until Martin PR for sure...
> >>>
> >>>Hmm, maybe we should have sent this patch through rdma in that
> >>>case.. The merge window is soon anyhow so it doesn't really matter
> >>>this time - but you need to think about what tree patches need to go
> >>>to when building your patch plan, don't just send a large unstructured
> >>>series like this and expect the maintainers to figure out all the
> >>>dependencies!
> >>
> >>I am also happy to just drop the patch from scsi-fixes and you can
> >>funnel everything through RDMA. Doesn't matter to me.
> >
> >Sure, if you can still do that.. Max can you send me all four patches
> >tomorrow and I'll route them through rdma.
> 
> Yes sure. I'm sorry for the ping-pong, I've tried to cover this in the cover
> letter but I guess I should've mentioned specifically what patches goes
> through which tree.

Just in general don't send such a jumble of patches for multiple
maintainers under one cover letter. It is error prone to sort it out.

Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-30 15:30                           ` Jason Gunthorpe
  0 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-30 15:30 UTC (permalink / raw)


On Wed, May 30, 2018@11:07:17AM +0300, Max Gurtovoy wrote:
> 
> 
> On 5/30/2018 1:19 AM, Jason Gunthorpe wrote:
> >On Tue, May 29, 2018@06:11:18PM -0400, Martin K. Petersen wrote:
> >>
> >>Jason,
> >>
> >>>>we must wait until Martin PR for sure...
> >>>
> >>>Hmm, maybe we should have sent this patch through rdma in that
> >>>case.. The merge window is soon anyhow so it doesn't really matter
> >>>this time - but you need to think about what tree patches need to go
> >>>to when building your patch plan, don't just send a large unstructured
> >>>series like this and expect the maintainers to figure out all the
> >>>dependencies!
> >>
> >>I am also happy to just drop the patch from scsi-fixes and you can
> >>funnel everything through RDMA. Doesn't matter to me.
> >
> >Sure, if you can still do that.. Max can you send me all four patches
> >tomorrow and I'll route them through rdma.
> 
> Yes sure. I'm sorry for the ping-pong, I've tried to cover this in the cover
> letter but I guess I should've mentioned specifically what patches goes
> through which tree.

Just in general don't send such a jumble of patches for multiple
maintainers under one cover letter. It is error prone to sort it out.

Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-29 22:19                       ` Jason Gunthorpe
@ 2018-05-30  8:07                         ` Max Gurtovoy
  -1 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-30  8:07 UTC (permalink / raw)
  To: Jason Gunthorpe, Martin K. Petersen
  Cc: Christoph Hellwig, keith.busch, linux-nvme, sagi, leon, oren,
	idanb, vladimirk, stable



On 5/30/2018 1:19 AM, Jason Gunthorpe wrote:
> On Tue, May 29, 2018 at 06:11:18PM -0400, Martin K. Petersen wrote:
>>
>> Jason,
>>
>>>> we must wait until Martin PR for sure...
>>>
>>> Hmm, maybe we should have sent this patch through rdma in that
>>> case.. The merge window is soon anyhow so it doesn't really matter
>>> this time - but you need to think about what tree patches need to go
>>> to when building your patch plan, don't just send a large unstructured
>>> series like this and expect the maintainers to figure out all the
>>> dependencies!
>>
>> I am also happy to just drop the patch from scsi-fixes and you can
>> funnel everything through RDMA. Doesn't matter to me.
> 
> Sure, if you can still do that.. Max can you send me all four patches
> tomorrow and I'll route them through rdma.

Yes sure. I'm sorry for the ping-pong, I've tried to cover this in the 
cover letter but I guess I should've mentioned specifically what patches 
goes through which tree.

> 
> Thanks,
> Jason
> 

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-30  8:07                         ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-30  8:07 UTC (permalink / raw)




On 5/30/2018 1:19 AM, Jason Gunthorpe wrote:
> On Tue, May 29, 2018@06:11:18PM -0400, Martin K. Petersen wrote:
>>
>> Jason,
>>
>>>> we must wait until Martin PR for sure...
>>>
>>> Hmm, maybe we should have sent this patch through rdma in that
>>> case.. The merge window is soon anyhow so it doesn't really matter
>>> this time - but you need to think about what tree patches need to go
>>> to when building your patch plan, don't just send a large unstructured
>>> series like this and expect the maintainers to figure out all the
>>> dependencies!
>>
>> I am also happy to just drop the patch from scsi-fixes and you can
>> funnel everything through RDMA. Doesn't matter to me.
> 
> Sure, if you can still do that.. Max can you send me all four patches
> tomorrow and I'll route them through rdma.

Yes sure. I'm sorry for the ping-pong, I've tried to cover this in the 
cover letter but I guess I should've mentioned specifically what patches 
goes through which tree.

> 
> Thanks,
> Jason
> 

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-29 22:19                       ` Jason Gunthorpe
@ 2018-05-29 22:41                         ` Martin K. Petersen
  -1 siblings, 0 replies; 33+ messages in thread
From: Martin K. Petersen @ 2018-05-29 22:41 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Martin K. Petersen, Max Gurtovoy, Christoph Hellwig, keith.busch,
	linux-nvme, sagi, leon, oren, idanb, vladimirk, stable


Jason,

>> I am also happy to just drop the patch from scsi-fixes and you can
>> funnel everything through RDMA. Doesn't matter to me.
>
> Sure, if you can still do that..

No problem. Done.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-29 22:41                         ` Martin K. Petersen
  0 siblings, 0 replies; 33+ messages in thread
From: Martin K. Petersen @ 2018-05-29 22:41 UTC (permalink / raw)



Jason,

>> I am also happy to just drop the patch from scsi-fixes and you can
>> funnel everything through RDMA. Doesn't matter to me.
>
> Sure, if you can still do that..

No problem. Done.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-29 22:11                     ` Martin K. Petersen
@ 2018-05-29 22:19                       ` Jason Gunthorpe
  -1 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-29 22:19 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Max Gurtovoy, Christoph Hellwig, keith.busch, linux-nvme, sagi,
	leon, oren, idanb, vladimirk, stable

On Tue, May 29, 2018 at 06:11:18PM -0400, Martin K. Petersen wrote:
> 
> Jason,
> 
> >> we must wait until Martin PR for sure...
> >
> > Hmm, maybe we should have sent this patch through rdma in that
> > case.. The merge window is soon anyhow so it doesn't really matter
> > this time - but you need to think about what tree patches need to go
> > to when building your patch plan, don't just send a large unstructured
> > series like this and expect the maintainers to figure out all the
> > dependencies!
> 
> I am also happy to just drop the patch from scsi-fixes and you can
> funnel everything through RDMA. Doesn't matter to me.

Sure, if you can still do that.. Max can you send me all four patches
tomorrow and I'll route them through rdma.

Thanks,
Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-29 22:19                       ` Jason Gunthorpe
  0 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-29 22:19 UTC (permalink / raw)


On Tue, May 29, 2018@06:11:18PM -0400, Martin K. Petersen wrote:
> 
> Jason,
> 
> >> we must wait until Martin PR for sure...
> >
> > Hmm, maybe we should have sent this patch through rdma in that
> > case.. The merge window is soon anyhow so it doesn't really matter
> > this time - but you need to think about what tree patches need to go
> > to when building your patch plan, don't just send a large unstructured
> > series like this and expect the maintainers to figure out all the
> > dependencies!
> 
> I am also happy to just drop the patch from scsi-fixes and you can
> funnel everything through RDMA. Doesn't matter to me.

Sure, if you can still do that.. Max can you send me all four patches
tomorrow and I'll route them through rdma.

Thanks,
Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-29 19:23                   ` Jason Gunthorpe
@ 2018-05-29 22:11                     ` Martin K. Petersen
  -1 siblings, 0 replies; 33+ messages in thread
From: Martin K. Petersen @ 2018-05-29 22:11 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Max Gurtovoy, Martin K. Petersen, Christoph Hellwig, keith.busch,
	linux-nvme, sagi, leon, oren, idanb, vladimirk, stable


Jason,

>> we must wait until Martin PR for sure...
>
> Hmm, maybe we should have sent this patch through rdma in that
> case.. The merge window is soon anyhow so it doesn't really matter
> this time - but you need to think about what tree patches need to go
> to when building your patch plan, don't just send a large unstructured
> series like this and expect the maintainers to figure out all the
> dependencies!

I am also happy to just drop the patch from scsi-fixes and you can
funnel everything through RDMA. Doesn't matter to me.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-29 22:11                     ` Martin K. Petersen
  0 siblings, 0 replies; 33+ messages in thread
From: Martin K. Petersen @ 2018-05-29 22:11 UTC (permalink / raw)



Jason,

>> we must wait until Martin PR for sure...
>
> Hmm, maybe we should have sent this patch through rdma in that
> case.. The merge window is soon anyhow so it doesn't really matter
> this time - but you need to think about what tree patches need to go
> to when building your patch plan, don't just send a large unstructured
> series like this and expect the maintainers to figure out all the
> dependencies!

I am also happy to just drop the patch from scsi-fixes and you can
funnel everything through RDMA. Doesn't matter to me.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-29 12:08                 ` Max Gurtovoy
@ 2018-05-29 19:23                   ` Jason Gunthorpe
  -1 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-29 19:23 UTC (permalink / raw)
  To: Max Gurtovoy
  Cc: Martin K. Petersen, Christoph Hellwig, keith.busch, linux-nvme,
	sagi, leon, oren, idanb, vladimirk, stable

On Tue, May 29, 2018 at 03:08:21PM +0300, Max Gurtovoy wrote:
> 
> 
> On 5/29/2018 6:01 AM, Martin K. Petersen wrote:
> >
> >Jason,
> >
> >>I see no problem for you to take it. Let me know if you prefer we do
> >>it through RDMA.
> >
> >Applied to 4.17/scsi-fixes. Thanks!
> >
> 
> Thanks Martin.
> 
> Jason,
> how do you suggest to proceed with patches 2/3/4 that were reviewed by
> Christoph ?

If you want RDMA to take any patches send them to
linux-rdma@vger.kernel.org, updated to include the tags that Christoph
included.. Otherwise they are not in the RDMA patchworks.

> we must wait until Martin PR for sure...

Hmm, maybe we should have sent this patch through rdma in that
case.. The merge window is soon anyhow so it doesn't really matter
this time - but you need to think about what tree patches need to go
to when building your patch plan, don't just send a large unstructured
series like this and expect the maintainers to figure out all the
dependencies!

So, send the patches you want to the rdma list around rc1

Thanks,
Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-29 19:23                   ` Jason Gunthorpe
  0 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-29 19:23 UTC (permalink / raw)


On Tue, May 29, 2018@03:08:21PM +0300, Max Gurtovoy wrote:
> 
> 
> On 5/29/2018 6:01 AM, Martin K. Petersen wrote:
> >
> >Jason,
> >
> >>I see no problem for you to take it. Let me know if you prefer we do
> >>it through RDMA.
> >
> >Applied to 4.17/scsi-fixes. Thanks!
> >
> 
> Thanks Martin.
> 
> Jason,
> how do you suggest to proceed with patches 2/3/4 that were reviewed by
> Christoph ?

If you want RDMA to take any patches send them to
linux-rdma at vger.kernel.org, updated to include the tags that Christoph
included.. Otherwise they are not in the RDMA patchworks.

> we must wait until Martin PR for sure...

Hmm, maybe we should have sent this patch through rdma in that
case.. The merge window is soon anyhow so it doesn't really matter
this time - but you need to think about what tree patches need to go
to when building your patch plan, don't just send a large unstructured
series like this and expect the maintainers to figure out all the
dependencies!

So, send the patches you want to the rdma list around rc1

Thanks,
Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-29  3:01               ` Martin K. Petersen
@ 2018-05-29 12:08                 ` Max Gurtovoy
  -1 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-29 12:08 UTC (permalink / raw)
  To: Martin K. Petersen, Jason Gunthorpe
  Cc: Christoph Hellwig, keith.busch, linux-nvme, sagi, leon, oren,
	idanb, vladimirk, stable



On 5/29/2018 6:01 AM, Martin K. Petersen wrote:
> 
> Jason,
> 
>> I see no problem for you to take it. Let me know if you prefer we do
>> it through RDMA.
> 
> Applied to 4.17/scsi-fixes. Thanks!
> 

Thanks Martin.

Jason,
how do you suggest to proceed with patches 2/3/4 that were reviewed by 
Christoph ?

we must wait until Martin PR for sure...

-Max.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-29 12:08                 ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-29 12:08 UTC (permalink / raw)




On 5/29/2018 6:01 AM, Martin K. Petersen wrote:
> 
> Jason,
> 
>> I see no problem for you to take it. Let me know if you prefer we do
>> it through RDMA.
> 
> Applied to 4.17/scsi-fixes. Thanks!
> 

Thanks Martin.

Jason,
how do you suggest to proceed with patches 2/3/4 that were reviewed by 
Christoph ?

we must wait until Martin PR for sure...

-Max.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-28 16:33             ` Jason Gunthorpe
@ 2018-05-29  3:01               ` Martin K. Petersen
  -1 siblings, 0 replies; 33+ messages in thread
From: Martin K. Petersen @ 2018-05-29  3:01 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Max Gurtovoy, Christoph Hellwig, keith.busch, linux-nvme, sagi,
	leon, oren, idanb, vladimirk, stable, martin.petersen


Jason,

> I see no problem for you to take it. Let me know if you prefer we do
> it through RDMA.

Applied to 4.17/scsi-fixes. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-29  3:01               ` Martin K. Petersen
  0 siblings, 0 replies; 33+ messages in thread
From: Martin K. Petersen @ 2018-05-29  3:01 UTC (permalink / raw)



Jason,

> I see no problem for you to take it. Let me know if you prefer we do
> it through RDMA.

Applied to 4.17/scsi-fixes. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-28 12:04           ` Max Gurtovoy
@ 2018-05-28 16:33             ` Jason Gunthorpe
  -1 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-28 16:33 UTC (permalink / raw)
  To: Max Gurtovoy
  Cc: Christoph Hellwig, keith.busch, linux-nvme, sagi, leon, oren,
	idanb, vladimirk, stable, martin.petersen

On Mon, May 28, 2018 at 03:04:38PM +0300, Max Gurtovoy wrote:
> Hi Martin/Jason,
> 
> can you please coordinate on taking this fix through your PR (RDMA or SCSi)
> ?

Martin, I see no problem for you to take it. Let me know if you prefer
we do it through RDMA.

Thanks,
Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-28 16:33             ` Jason Gunthorpe
  0 siblings, 0 replies; 33+ messages in thread
From: Jason Gunthorpe @ 2018-05-28 16:33 UTC (permalink / raw)


On Mon, May 28, 2018@03:04:38PM +0300, Max Gurtovoy wrote:
> Hi Martin/Jason,
> 
> can you please coordinate on taking this fix through your PR (RDMA or SCSi)
> ?

Martin, I see no problem for you to take it. Let me know if you prefer
we do it through RDMA.

Thanks,
Jason

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-28 12:03         ` Christoph Hellwig
@ 2018-05-28 12:04           ` Max Gurtovoy
  -1 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-28 12:04 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: jgg, keith.busch, linux-nvme, sagi, leon, oren, idanb, vladimirk,
	stable, martin.petersen

Hi Martin/Jason,

can you please coordinate on taking this fix through your PR (RDMA or 
SCSi) ?

On 5/28/2018 3:03 PM, Christoph Hellwig wrote:
> On Mon, May 28, 2018 at 02:54:48PM +0300, Max Gurtovoy wrote:
>>
>>
>> On 5/28/2018 10:21 AM, Christoph Hellwig wrote:
>>> On Sun, May 27, 2018 at 06:50:06PM +0300, Max Gurtovoy wrote:
>>>> A copy/paste bug (probably) caused setting of an app_tag check mask
>>>> in case where a ref_tag check was needed.
>>>>
>>>> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
>>>> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
>>>> Cc: stable@vger.kernel.org
>>>> Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
>>>
>>> Looks good, and should probably got into the scsi tree ASAP.
>>
>> Yes, there are few patches that can be pushed "as is".
>>
>> Should it go through Nicholas PR ?
> 
> Nic has been non-responsive for a while and Martin has queued up
> target fixes when needed.
> 

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-28 12:04           ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-28 12:04 UTC (permalink / raw)


Hi Martin/Jason,

can you please coordinate on taking this fix through your PR (RDMA or 
SCSi) ?

On 5/28/2018 3:03 PM, Christoph Hellwig wrote:
> On Mon, May 28, 2018@02:54:48PM +0300, Max Gurtovoy wrote:
>>
>>
>> On 5/28/2018 10:21 AM, Christoph Hellwig wrote:
>>> On Sun, May 27, 2018@06:50:06PM +0300, Max Gurtovoy wrote:
>>>> A copy/paste bug (probably) caused setting of an app_tag check mask
>>>> in case where a ref_tag check was needed.
>>>>
>>>> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
>>>> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
>>>> Cc: stable at vger.kernel.org
>>>> Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
>>>
>>> Looks good, and should probably got into the scsi tree ASAP.
>>
>> Yes, there are few patches that can be pushed "as is".
>>
>> Should it go through Nicholas PR ?
> 
> Nic has been non-responsive for a while and Martin has queued up
> target fixes when needed.
> 

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-28 11:54       ` Max Gurtovoy
@ 2018-05-28 12:03         ` Christoph Hellwig
  -1 siblings, 0 replies; 33+ messages in thread
From: Christoph Hellwig @ 2018-05-28 12:03 UTC (permalink / raw)
  To: Max Gurtovoy
  Cc: Christoph Hellwig, jgg, keith.busch, linux-nvme, sagi, leon,
	oren, idanb, vladimirk, stable

On Mon, May 28, 2018 at 02:54:48PM +0300, Max Gurtovoy wrote:
>
>
> On 5/28/2018 10:21 AM, Christoph Hellwig wrote:
>> On Sun, May 27, 2018 at 06:50:06PM +0300, Max Gurtovoy wrote:
>>> A copy/paste bug (probably) caused setting of an app_tag check mask
>>> in case where a ref_tag check was needed.
>>>
>>> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
>>> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
>>> Cc: stable@vger.kernel.org
>>> Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
>>
>> Looks good, and should probably got into the scsi tree ASAP.
>
> Yes, there are few patches that can be pushed "as is".
>
> Should it go through Nicholas PR ?

Nic has been non-responsive for a while and Martin has queued up
target fixes when needed.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-28 12:03         ` Christoph Hellwig
  0 siblings, 0 replies; 33+ messages in thread
From: Christoph Hellwig @ 2018-05-28 12:03 UTC (permalink / raw)


On Mon, May 28, 2018@02:54:48PM +0300, Max Gurtovoy wrote:
>
>
> On 5/28/2018 10:21 AM, Christoph Hellwig wrote:
>> On Sun, May 27, 2018@06:50:06PM +0300, Max Gurtovoy wrote:
>>> A copy/paste bug (probably) caused setting of an app_tag check mask
>>> in case where a ref_tag check was needed.
>>>
>>> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
>>> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
>>> Cc: stable at vger.kernel.org
>>> Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
>>
>> Looks good, and should probably got into the scsi tree ASAP.
>
> Yes, there are few patches that can be pushed "as is".
>
> Should it go through Nicholas PR ?

Nic has been non-responsive for a while and Martin has queued up
target fixes when needed.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-28  7:21     ` Christoph Hellwig
@ 2018-05-28 11:54       ` Max Gurtovoy
  -1 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-28 11:54 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: jgg, keith.busch, linux-nvme, sagi, leon, oren, idanb, vladimirk, stable



On 5/28/2018 10:21 AM, Christoph Hellwig wrote:
> On Sun, May 27, 2018 at 06:50:06PM +0300, Max Gurtovoy wrote:
>> A copy/paste bug (probably) caused setting of an app_tag check mask
>> in case where a ref_tag check was needed.
>>
>> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
>> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
> 
> Looks good, and should probably got into the scsi tree ASAP.

Yes, there are few patches that can be pushed "as is".

Should it go through Nicholas PR ?

> 
> Btw, please don't cc stable@ for the whole series.
> 

The cc stable@ is only for this patch and not for the series.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-28 11:54       ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-28 11:54 UTC (permalink / raw)




On 5/28/2018 10:21 AM, Christoph Hellwig wrote:
> On Sun, May 27, 2018@06:50:06PM +0300, Max Gurtovoy wrote:
>> A copy/paste bug (probably) caused setting of an app_tag check mask
>> in case where a ref_tag check was needed.
>>
>> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
>> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
>> Cc: stable at vger.kernel.org
>> Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
> 
> Looks good, and should probably got into the scsi tree ASAP.

Yes, there are few patches that can be pushed "as is".

Should it go through Nicholas PR ?

> 
> Btw, please don't cc stable@ for the whole series.
> 

The cc stable@ is only for this patch and not for the series.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-27 15:50   ` Max Gurtovoy
@ 2018-05-28  7:21     ` Christoph Hellwig
  -1 siblings, 0 replies; 33+ messages in thread
From: Christoph Hellwig @ 2018-05-28  7:21 UTC (permalink / raw)
  To: Max Gurtovoy
  Cc: jgg, keith.busch, linux-nvme, hch, sagi, leon, oren, idanb,
	vladimirk, stable

On Sun, May 27, 2018 at 06:50:06PM +0300, Max Gurtovoy wrote:
> A copy/paste bug (probably) caused setting of an app_tag check mask
> in case where a ref_tag check was needed.
> 
> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
> Cc: stable@vger.kernel.org
> Signed-off-by: Max Gurtovoy <maxg@mellanox.com>

Looks good, and should probably got into the scsi tree ASAP.

Btw, please don't cc stable@ for the whole series.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-28  7:21     ` Christoph Hellwig
  0 siblings, 0 replies; 33+ messages in thread
From: Christoph Hellwig @ 2018-05-28  7:21 UTC (permalink / raw)


On Sun, May 27, 2018@06:50:06PM +0300, Max Gurtovoy wrote:
> A copy/paste bug (probably) caused setting of an app_tag check mask
> in case where a ref_tag check was needed.
> 
> Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
> Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
> Cc: stable at vger.kernel.org
> Signed-off-by: Max Gurtovoy <maxg at mellanox.com>

Looks good, and should probably got into the scsi tree ASAP.

Btw, please don't cc stable@ for the whole series.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
  2018-05-27 15:50 [RFC PATCH 00/17] T10-PI support for NVMeoF/RDMA host Max Gurtovoy
@ 2018-05-27 15:50   ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-27 15:50 UTC (permalink / raw)
  To: jgg, keith.busch, linux-nvme, hch, sagi
  Cc: leon, oren, idanb, vladimirk, Max Gurtovoy, stable

A copy/paste bug (probably) caused setting of an app_tag check mask
in case where a ref_tag check was needed.

Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
Cc: stable@vger.kernel.org
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
---
 drivers/infiniband/ulp/isert/ib_isert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index fff40b0..d8b6bde 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -2108,7 +2108,7 @@
 
 	sig_attrs->check_mask =
 	       (se_cmd->prot_checks & TARGET_DIF_CHECK_GUARD  ? 0xc0 : 0) |
-	       (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x30 : 0) |
+	       (se_cmd->prot_checks & TARGET_DIF_CHECK_APPTAG ? 0x30 : 0) |
 	       (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x0f : 0);
 	return 0;
 }
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [PATCH 01/17] IB/isert: fix T10-pi check mask setting
@ 2018-05-27 15:50   ` Max Gurtovoy
  0 siblings, 0 replies; 33+ messages in thread
From: Max Gurtovoy @ 2018-05-27 15:50 UTC (permalink / raw)


A copy/paste bug (probably) caused setting of an app_tag check mask
in case where a ref_tag check was needed.

Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
Cc: stable at vger.kernel.org
Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
---
 drivers/infiniband/ulp/isert/ib_isert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index fff40b0..d8b6bde 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -2108,7 +2108,7 @@
 
 	sig_attrs->check_mask =
 	       (se_cmd->prot_checks & TARGET_DIF_CHECK_GUARD  ? 0xc0 : 0) |
-	       (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x30 : 0) |
+	       (se_cmd->prot_checks & TARGET_DIF_CHECK_APPTAG ? 0x30 : 0) |
 	       (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x0f : 0);
 	return 0;
 }
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2018-05-30 21:49 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1527191377-11513-1-git-send-email-maxg@mellanox.com>
2018-05-24 19:49 ` [PATCH 01/17] IB/isert: fix T10-pi check mask setting Max Gurtovoy
2018-05-27 15:50 [RFC PATCH 00/17] T10-PI support for NVMeoF/RDMA host Max Gurtovoy
2018-05-27 15:50 ` [PATCH 01/17] IB/isert: fix T10-pi check mask setting Max Gurtovoy
2018-05-27 15:50   ` Max Gurtovoy
2018-05-28  7:21   ` Christoph Hellwig
2018-05-28  7:21     ` Christoph Hellwig
2018-05-28 11:54     ` Max Gurtovoy
2018-05-28 11:54       ` Max Gurtovoy
2018-05-28 12:03       ` Christoph Hellwig
2018-05-28 12:03         ` Christoph Hellwig
2018-05-28 12:04         ` Max Gurtovoy
2018-05-28 12:04           ` Max Gurtovoy
2018-05-28 16:33           ` Jason Gunthorpe
2018-05-28 16:33             ` Jason Gunthorpe
2018-05-29  3:01             ` Martin K. Petersen
2018-05-29  3:01               ` Martin K. Petersen
2018-05-29 12:08               ` Max Gurtovoy
2018-05-29 12:08                 ` Max Gurtovoy
2018-05-29 19:23                 ` Jason Gunthorpe
2018-05-29 19:23                   ` Jason Gunthorpe
2018-05-29 22:11                   ` Martin K. Petersen
2018-05-29 22:11                     ` Martin K. Petersen
2018-05-29 22:19                     ` Jason Gunthorpe
2018-05-29 22:19                       ` Jason Gunthorpe
2018-05-29 22:41                       ` Martin K. Petersen
2018-05-29 22:41                         ` Martin K. Petersen
2018-05-30  8:07                       ` Max Gurtovoy
2018-05-30  8:07                         ` Max Gurtovoy
2018-05-30 15:30                         ` Jason Gunthorpe
2018-05-30 15:30                           ` Jason Gunthorpe
2018-05-30 21:47   ` Sagi Grimberg
2018-05-30 21:47     ` Sagi Grimberg
2018-05-30 21:49   ` Sagi Grimberg
2018-05-30 21:49     ` Sagi Grimberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.