aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_scan.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-13 23:35:54 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-13 23:35:54 -0500
commitd83763f4a6adb2f417c3288ee903982985ae949c (patch)
tree610a7cfd32935ce4b555dc832c26ddeb13dcd003 /drivers/scsi/scsi_scan.c
parent9aa3d651a9199103eb6451aeb0ac1b66a6d770a6 (diff)
parent0a5149ba02bdf75281b8bc94cf6dfa94c527fa6f (diff)
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull final round of SCSI updates from James Bottomley: "Sorry for the delay in this patch which was mostly caused by getting the merger of the mpt2/mpt3sas driver, which was seen as an essential item of maintenance work to do before the drivers diverge too much. Unfortunately, this caused a compile failure (detected by linux-next), which then had to be fixed up and incubated. In addition to the mpt2/3sas rework, there are updates from pm80xx, lpfc, bnx2fc, hpsa, ipr, aacraid, megaraid_sas, storvsc and ufs plus an assortment of changes including some year 2038 issues, a fix for a remove before detach issue in some drivers and a couple of other minor issues" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (141 commits) mpt3sas: fix inline markers on non inline function declarations sd: Clear PS bit before Mode Select. ibmvscsi: set max_lun to 32 ibmvscsi: display default value for max_id, max_lun and max_channel. mptfusion: don't allow negative bytes in kbuf_alloc_2_sgl() scsi: pmcraid: replace struct timeval with ktime_get_real_seconds() mvumi: 64bit value for seconds_since1970 be2iscsi: Fix bogus WARN_ON length check scsi_scan: don't dump trace when scsi_prep_async_scan() is called twice mpt3sas: Bump mpt3sas driver version to 09.102.00.00 mpt3sas: Single driver module which supports both SAS 2.0 & SAS 3.0 HBAs mpt2sas, mpt3sas: Update the driver versions mpt3sas: setpci reset kernel oops fix mpt3sas: Added OEM Gen2 PnP ID branding names mpt3sas: Refcount fw_events and fix unsafe list usage mpt3sas: Refcount sas_device objects and fix unsafe list usage mpt3sas: sysfs attribute to report Backup Rail Monitor Status mpt3sas: Ported WarpDrive product SSS6200 support mpt3sas: fix for driver fails EEH, recovery from injected pci bus error mpt3sas: Manage MSI-X vectors according to HBA device type ...
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r--drivers/scsi/scsi_scan.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index f9f3f8203d42..83245391e956 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -55,6 +55,7 @@
55 * Default timeout 55 * Default timeout
56 */ 56 */
57#define SCSI_TIMEOUT (2*HZ) 57#define SCSI_TIMEOUT (2*HZ)
58#define SCSI_REPORT_LUNS_TIMEOUT (30*HZ)
58 59
59/* 60/*
60 * Prefix values for the SCSI id's (stored in sysfs name field) 61 * Prefix values for the SCSI id's (stored in sysfs name field)
@@ -274,8 +275,7 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
274 WARN_ON_ONCE(!blk_get_queue(sdev->request_queue)); 275 WARN_ON_ONCE(!blk_get_queue(sdev->request_queue));
275 sdev->request_queue->queuedata = sdev; 276 sdev->request_queue->queuedata = sdev;
276 277
277 if (!shost_use_blk_mq(sdev->host) && 278 if (!shost_use_blk_mq(sdev->host)) {
278 (shost->bqt || shost->hostt->use_blk_tags)) {
279 blk_queue_init_tags(sdev->request_queue, 279 blk_queue_init_tags(sdev->request_queue,
280 sdev->host->cmd_per_lun, shost->bqt, 280 sdev->host->cmd_per_lun, shost->bqt,
281 shost->hostt->tag_alloc_policy); 281 shost->hostt->tag_alloc_policy);
@@ -1383,7 +1383,7 @@ retry:
1383 1383
1384 result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, 1384 result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
1385 lun_data, length, &sshdr, 1385 lun_data, length, &sshdr,
1386 SCSI_TIMEOUT + 4 * HZ, 3, NULL); 1386 SCSI_REPORT_LUNS_TIMEOUT, 3, NULL);
1387 1387
1388 SCSI_LOG_SCAN_BUS(3, sdev_printk (KERN_INFO, sdev, 1388 SCSI_LOG_SCAN_BUS(3, sdev_printk (KERN_INFO, sdev,
1389 "scsi scan: REPORT LUNS" 1389 "scsi scan: REPORT LUNS"
@@ -1712,8 +1712,7 @@ static struct async_scan_data *scsi_prep_async_scan(struct Scsi_Host *shost)
1712 return NULL; 1712 return NULL;
1713 1713
1714 if (shost->async_scan) { 1714 if (shost->async_scan) {
1715 shost_printk(KERN_INFO, shost, "%s called twice\n", __func__); 1715 shost_printk(KERN_DEBUG, shost, "%s called twice\n", __func__);
1716 dump_stack();
1717 return NULL; 1716 return NULL;
1718 } 1717 }
1719 1718