Skip to content

Commit ebbb759

Browse files
committed
Merge remote-tracking branch 'mkp-scsi/4.9/scsi-fixes' into fixes
2 parents 1001354 + 8a4236a commit ebbb759

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

drivers/s390/scsi/zfcp_dbf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void zfcp_dbf_san(char *tag, struct zfcp_dbf *dbf,
384384
/* if (len > rec_len):
385385
* dump data up to cap_len ignoring small duplicate in rec->payload
386386
*/
387-
spin_lock_irqsave(&dbf->pay_lock, flags);
387+
spin_lock(&dbf->pay_lock);
388388
memset(payload, 0, sizeof(*payload));
389389
memcpy(payload->area, paytag, ZFCP_DBF_TAG_LEN);
390390
payload->fsf_req_id = req_id;

drivers/scsi/ipr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,6 @@ static void ipr_process_error(struct ipr_cmnd *ipr_cmd)
25862586
struct ipr_hostrcb *hostrcb = ipr_cmd->u.hostrcb;
25872587
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
25882588
u32 fd_ioasc;
2589-
char *envp[] = { "ASYNC_ERR_LOG=1", NULL };
25902589

25912590
if (ioa_cfg->sis64)
25922591
fd_ioasc = be32_to_cpu(hostrcb->hcam.u.error64.fd_ioasc);
@@ -2607,8 +2606,8 @@ static void ipr_process_error(struct ipr_cmnd *ipr_cmd)
26072606
}
26082607

26092608
list_add_tail(&hostrcb->queue, &ioa_cfg->hostrcb_report_q);
2609+
schedule_work(&ioa_cfg->work_q);
26102610
hostrcb = ipr_get_free_hostrcb(ioa_cfg);
2611-
kobject_uevent_env(&ioa_cfg->host->shost_dev.kobj, KOBJ_CHANGE, envp);
26122611

26132612
ipr_send_hcam(ioa_cfg, IPR_HCAM_CDB_OP_CODE_LOG_DATA, hostrcb);
26142613
}

drivers/scsi/scsi_dh.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ struct scsi_dh_blist {
3636
};
3737

3838
static const struct scsi_dh_blist scsi_dh_blist[] = {
39-
{"DGC", "RAID", "clariion" },
40-
{"DGC", "DISK", "clariion" },
41-
{"DGC", "VRAID", "clariion" },
39+
{"DGC", "RAID", "emc" },
40+
{"DGC", "DISK", "emc" },
41+
{"DGC", "VRAID", "emc" },
4242

4343
{"COMPAQ", "MSA1000 VOLUME", "hp_sw" },
4444
{"COMPAQ", "HSV110", "hp_sw" },

drivers/scsi/scsi_scan.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,6 @@ static void scsi_sequential_lun_scan(struct scsi_target *starget,
13071307
static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
13081308
enum scsi_scan_mode rescan)
13091309
{
1310-
char devname[64];
13111310
unsigned char scsi_cmd[MAX_COMMAND_SIZE];
13121311
unsigned int length;
13131312
u64 lun;
@@ -1349,9 +1348,6 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
13491348
}
13501349
}
13511350

1352-
sprintf(devname, "host %d channel %d id %d",
1353-
shost->host_no, sdev->channel, sdev->id);
1354-
13551351
/*
13561352
* Allocate enough to hold the header (the same size as one scsi_lun)
13571353
* plus the number of luns we are requesting. 511 was the default
@@ -1470,12 +1466,12 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
14701466
out_err:
14711467
kfree(lun_data);
14721468
out:
1473-
scsi_device_put(sdev);
14741469
if (scsi_device_created(sdev))
14751470
/*
14761471
* the sdev we used didn't appear in the report luns scan
14771472
*/
14781473
__scsi_remove_device(sdev);
1474+
scsi_device_put(sdev);
14791475
return ret;
14801476
}
14811477

0 commit comments

Comments
 (0)