From: Reddy, Sreekanth Date: Mon, 14 Jul 2014 06:31:35 +0000 (+0530) Subject: mpt3sas: delay scsi_add_host call to work with scsi-mq X-Git-Tag: omap-for-v3.17/fixes-against-rc2~143^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dc06fd84645c323a1f20482b9b571cab6dc7d93;p=pandora-kernel.git mpt3sas: delay scsi_add_host call to work with scsi-mq In _scsih_probe, delay the call to scsi_add_host until the host has been fully set up. Otherwise, the default .can_queue value of 1 causes scsi-mq to set the block layer request queue size to its minimum size, resulting in awful performance. In _scsih_probe error handling, call mpt3sas_base_detach rather than scsi_remove_host to properly clean up in reverse order. In _scsih_remove, call scsi_remove_host earlier to clean up in reverse order. Signed-off-by: Robert Elliott Signed-off-by: Christoph Hellwig Signed-off-by: Nagalakshmi Nandigama Signed-off-by: Sreekanth Reddy Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed