Re: [PATCH 0/5] block/scsi/lio support for COMPARE_AND_WRITE

2014-10-18 Thread Bart Van Assche
On 10/16/14 07:37, micha...@cs.wisc.edu wrote: The following patches implement the SCSI command COMPARE_AND_WRITE as a new bio/request type REQ_CMP_AND_WRITE. COMPARE_AND_WRITE is defined in the SCSI SBC (SCSI block command) specs as: The COMPARE AND WRITE command requests that the device

Re: [PATCH scsi] libcxgbi : support ipv6 address host_param

2014-10-18 Thread h...@infradead.org
On Fri, Oct 17, 2014 at 07:43:34PM +, Anish Bhatt wrote: I actually wanted to get some clarification on how the branches on scsi-queue work. The core/drivers separation is easy enough, but the current branches are confusing. If say I am submitting a bug fix for the next 3.17 release,

Re: [PATCH] vmw_pvscsi: fixup tagging

2014-10-18 Thread Christoph Hellwig
On Fri, Oct 17, 2014 at 06:34:48PM +, Arvind Kumar wrote: Hi Christoph, Thanks for the change. Sorry for the delay. The change looks fine to me. I just have a question. The comment in include/scsi/scsi_cmnd.h says: struct scsi_cmnd { ... unsigned char tag; /* SCSI-II

Re: [PATCH] scsi: Resolve some missing-field-initializers warnings

2014-10-18 Thread Christoph Hellwig
On Fri, Oct 17, 2014 at 10:44:36PM +, Rustad, Mark D wrote: The warning appears in W=2 builds. I had another way to silence it by using diagnostic control macros, but those macros were not accepted. Using a single designated initialization also silences it. Oh well. I think the earlier

Re: [PATCH 2/5] block: add function to issue compare and write

2014-10-18 Thread Christoph Hellwig
On Fri, Oct 17, 2014 at 07:38:37PM -0400, Martin K. Petersen wrote: The problem with this is that, as it stands, a bio has no type. And it would suck if we couldn't keep bio rw and request flags in sync. I wonder if it would make more sense to move the remaining rq types to cmd_flags after

Re: Sparc ESP problem with blk-mq

2014-10-18 Thread David Miller
Christoph, I don't see how the new tagging code with blk-mq can be providing compatible behavior for existing SCSI drivers. Do you know that scsi_populate_tag_msg() is always going to provide a tag? Unconditionally, every time, when using blk-mq? This is because the test: if

Re: [PATCH] vmw_pvscsi: fixup tagging

2014-10-18 Thread Hannes Reinecke
On 10/17/2014 08:34 PM, Arvind Kumar wrote: Hi Christoph, Thanks for the change. Sorry for the delay. The change looks fine to me. I just have a question. The comment in include/scsi/scsi_cmnd.h says: struct scsi_cmnd { ... unsigned char tag; /* SCSI-II queued command tag */ }

Re: Sparc ESP problem with blk-mq

2014-10-18 Thread Christoph Hellwig
On Sat, Oct 18, 2014 at 01:31:32PM -0400, David Miller wrote: Christoph, I don't see how the new tagging code with blk-mq can be providing compatible behavior for existing SCSI drivers. It doesn't, and that's my fault. Please try the patch below: diff --git a/Documentation/block/biodoc.txt

[PATCH v3] SG_SCSI_RESET ioctl: add no_escalate values

2014-10-18 Thread Douglas Gilbert
Further to a January 2013 thread titled: [PATCH] SG_SCSI_RESET ioctl should only perform requested operation by Jeremy Linton a patch (v3) is presented that expands the existing ioctl to include no_escalate versions to the existing resets. This requires no changes to SCSI low level drivers

Re: [PATCH 0/5] block/scsi/lio support for COMPARE_AND_WRITE

2014-10-18 Thread Mike Christie
On 10/18/2014 03:11 AM, Bart Van Assche wrote: On 10/16/14 07:37, micha...@cs.wisc.edu wrote: The following patches implement the SCSI command COMPARE_AND_WRITE as a new bio/request type REQ_CMP_AND_WRITE. COMPARE_AND_WRITE is defined in the SCSI SBC (SCSI block command) specs as: The

[PATCH 2/5] scsi: bfa: bfa_fcs_lport.c: Cleaning up missing null-terminate by switching from strncpy to strzcpy

2014-10-18 Thread Rickard Strandqvist
Ensures that the string is null-terminate in connection with the use of strncpy, by switching from strncpy to strzcpy. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/scsi/bfa/bfa_fcs_lport.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

RE: [PATCH scsi] libcxgbi : support ipv6 address host_param

2014-10-18 Thread Anish Bhatt
Aah, thanks for the clarification. I have made mistakenly made this patch against drivers-for-3.18 then, but it applies cleanly to drivers-for-3.17 as well, please apply this to drivers-for-3.17. -Anish -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a