Re: [PATCH v4] sg: relax 16 byte cdb restriction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13-12-17 03:21 PM, James Bottomley wrote:
On Sun, 2013-12-01 at 17:13 +0100, Douglas Gilbert wrote:
ChangeLog:
          - remove the 16 byte CDB (SCSI command) length limit
            from the sg driver by handling longer CDBs the same
            way as the bsg driver. Remove comment from sg.h
            public interface about the cmd_len field being
            limited to 16 bytes.
          - remove some dead code caused by this change
          - cleanup comment block at the top of sg.h, fix urls

Signed-off-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx>

This doesn't apply:

patching file drivers/scsi/sg.c
Hunk #1 succeeded at 74 (offset 1 line).
Hunk #2 succeeded at 164 (offset 2 lines).
Hunk #3 succeeded at 569 (offset -5 lines).
Hunk #4 FAILED at 606.
Hunk #5 succeeded at 678 (offset -6 lines).
Hunk #6 FAILED at 1660.
Hunk #7 succeeded at 1742 (offset -11 lines).
2 out of 7 hunks FAILED -- saving rejects to file drivers/scsi/sg.c.rej

It looks like there's a missing intermediate patch changing the way
logging is done within the driver ... I don't recall seeing such a patch
on the list.

It based on this patch:
    http://www.spinics.net/lists/linux-scsi/msg69957.html
sent to the list on 12 November titled:
   [PATCH v3] sg: O_EXCL and other lock handling

and it was followed in the same day by:
   [PATCH v3] sg: relax 16 byte cdb restriction
which you commented on, hence "v4" that started this thread.


The vagueness in the "O_EXCL" post about the reported failure
in the vicinity of sg_remove() was cleared up a few days later
by this post:
    http://www.spinics.net/lists/linux-scsi/msg70006.html
You might check if the fix to the st driver for this matter has
made it into your tree or further.

I'm told the "O_EXCL" patch has been tested by a major vendor
with help from another frequent correspondent to this list.

Doug Gilbert


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux