kernel-ark/drivers/scsi/mpt2sas
sreekanth.reddy@lsi.com 338b131a32 [SCSI] mpt2sas: Fix for Driver oops, when loading driver with max_queue_depth command line option to a very small value
If the specified max_queue_depth setting is less than the
expected number of internal commands, then driver will calculate
the queue depth size to a negitive number. This negitive number
is actually a very large number because variable is unsigned
16bit integer. So, the driver will ask for a very large amount of
memory for message frames and resulting into oops as memory
allocation routines will not able to handle such a large request.

So, in order to limit this kind of oops, The driver need to set
the max_queue_depth to a scsi mid layer's can_queue value. Then
the overall message frames required for IO is minimum of either
(max_queue_depth plus internal commands) or the IOC global
credits.

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@lsi.com>
Cc: <stable@kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-08-22 09:38:49 +04:00
..
mpi [SCSI] mpt2sas: MPI next revision header update 2012-04-23 19:26:49 +01:00
Kconfig
Makefile
mpt2sas_base.c [SCSI] mpt2sas: Fix for Driver oops, when loading driver with max_queue_depth command line option to a very small value 2012-08-22 09:38:49 +04:00
mpt2sas_base.h [SCSI] core, classes, mpt2sas: have scsi_internal_device_unblock take new state 2012-07-20 08:58:22 +01:00
mpt2sas_config.c mpt2sas: Fix typo in mpt2sas_config.c 2012-02-03 22:45:35 +01:00
mpt2sas_ctl.c [SCSI] mpt2sas: Fix security scan issues reported by source code analysis tool 2012-04-23 19:27:21 +01:00
mpt2sas_ctl.h [SCSI] mpt2sas : WarpDrive New product SSS6200 support added 2011-05-01 10:36:54 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC 2011-06-29 16:07:00 -05:00
mpt2sas_scsih.c [SCSI] core, classes, mpt2sas: have scsi_internal_device_unblock take new state 2012-07-20 08:58:22 +01:00
mpt2sas_transport.c [SCSI] mpt2sas: Set the phy identifier of the end device to the phy number of the parent device it is linked to 2012-04-23 19:27:38 +01:00