From: Christoph Hellwig Date: Sat, 16 Jul 2011 19:00:35 +0000 (-0400) Subject: [SCSI] libsas: fix sas_queuecommand return values X-Git-Tag: v3.2-rc1~125^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac81c6a832a8769d1cc7ffda361aa3dc3d8f06dc;p=pandora-kernel.git [SCSI] libsas: fix sas_queuecommand return values ->queuecommand must return either 0, or one of the SCSI_MLQUEUE_* return values. Non-transient errors are indicated by setting cmd->result before calling ->scsi_done and returning 0. Fix libsas to adhere to this calling convention. Note that the DID_ERROR for returns from the low-level driver might not be correct for all cases, but it's the best we can do with the current layering in libsas. I also suspect that the pre-existing handling of -SAS_QUEUE_FULL should really be SCSI_MLQUEUE_HOST_BUSY, but I'll leave that for a separate change. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley --- Reading git-diff-tree failed