From: brking@us.ibm.com Date: Mon, 23 Jan 2006 21:03:22 +0000 (-0600) Subject: [SCSI] Prevent scsi_execute_async from guessing cdb length X-Git-Tag: v2.6.16-rc2~242^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb1d1073a10fdc8547e3eb821ee2488260094b39;p=pandora-kernel.git [SCSI] Prevent scsi_execute_async from guessing cdb length When the scsi_execute_async interface was added it ended up reducing the flexibility of userspace to send arbitrary scsi commands through sg using SG_IO. The SG_IO interface allows userspace to specify the CDB length. This is now ignored in scsi_execute_async and it is guessed using the COMMAND_SIZE macro, which is not always correct, particularly for vendor specific commands. This patch adds a cmd_len parameter to the scsi_execute_async interface to allow the caller to specify the length of the CDB. Signed-off-by: Brian King Signed-off-by: James Bottomley --- Reading git-diff-tree failed