From: Kashyap, Desai Date: Tue, 4 Jan 2011 06:04:57 +0000 (+0530) Subject: [SCSI] mpt2sas: Correct resizing calculation for max_queue_depth X-Git-Tag: v2.6.38-rc4~20^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e1b961ab067ee3acaf723531da4d3f23e1d6f7;p=pandora-kernel.git [SCSI] mpt2sas: Correct resizing calculation for max_queue_depth The ioc->hba_queue_depth is not properly resized when the controller firmware reports that it supports more outstanding IO than what can be fit inside the reply descriptor pool depth. This is reproduced by setting the controller global credits larger than 30,000. The bug results in an incorrect sizing of the queues. The fix is to resize the queue_size by dividing queue_diff by two. Signed-off-by: Kashyap Desai Cc: stable@kernel.org Signed-off-by: James Bottomley --- Reading git-diff-tree failed