From: Christoph Hellwig Date: Thu, 13 Nov 2014 13:27:41 +0000 (+0100) Subject: scsi: don't allow setting of queue_depth bigger than can_queue X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e6f2416044c062a56091ebf8d76760956dd5872;p=pandora-kernel.git scsi: don't allow setting of queue_depth bigger than can_queue We won't ever queue more commands than the host allows. Instead of letting drivers either reject or ignore this case handle it in common code. Note that various driver use internal constant or variables that are assigned to both shost->can_queue and checked in ->change_queue_depth - I did remove those checks as well. Signed-off-by: Christoph Hellwig Reviewed-by: Mike Christie Reviewed-by: Hannes Reinecke --- Reading git-diff-tree failed