]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mpt2sas: Correct resizing calculation for max_queue_depth
authorKashyap, Desai <kashyap.desai@lsi.com>
Tue, 4 Jan 2011 06:04:57 +0000 (11:34 +0530)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:25 +0000 (12:46 -0400)
commit8d6c7b911788d91c682b1d8341f6ef115cb24eec
treee3a88ac99d38a05c00a079f28fccea6ef909cfc6
parent51a51691b64b6aa1c4ebf656ddfc4484fdb26c1d
mpt2sas: Correct resizing calculation for max_queue_depth

commit 11e1b961ab067ee3acaf723531da4d3f23e1d6f7 upstream.

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 <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/scsi/mpt2sas/mpt2sas_base.c