Skip to content

Commit e644645

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "Three minor fixes, two in drivers, one to fix a hang after reset with iSCSI, and one to avoid a spurious log message; and the final core one to correct a suspend/resume miscount with quiesced devices" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: target: Put lun_ref at end of tmr processing scsi: pm: Balance pm_only counter of request queue during system resume scsi: qla2xxx: Do not log message when reading port speed via sysfs
2 parents a24deb9 + f2e6b75 commit e644645

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

drivers/scsi/qla2xxx/qla_attr.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,9 +1850,6 @@ qla2x00_port_speed_show(struct device *dev, struct device_attribute *attr,
18501850
return -EINVAL;
18511851
}
18521852

1853-
ql_log(ql_log_info, vha, 0x70d6,
1854-
"port speed:%d\n", ha->link_data_rate);
1855-
18561853
return scnprintf(buf, PAGE_SIZE, "%s\n", spd[ha->link_data_rate]);
18571854
}
18581855

drivers/scsi/scsi_pm.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ static int scsi_dev_type_resume(struct device *dev,
8080
dev_dbg(dev, "scsi resume: %d\n", err);
8181

8282
if (err == 0) {
83+
bool was_runtime_suspended;
84+
85+
was_runtime_suspended = pm_runtime_suspended(dev);
86+
8387
pm_runtime_disable(dev);
8488
err = pm_runtime_set_active(dev);
8589
pm_runtime_enable(dev);
@@ -93,8 +97,10 @@ static int scsi_dev_type_resume(struct device *dev,
9397
*/
9498
if (!err && scsi_is_sdev_device(dev)) {
9599
struct scsi_device *sdev = to_scsi_device(dev);
96-
97-
blk_set_runtime_active(sdev->request_queue);
100+
if (was_runtime_suspended)
101+
blk_post_runtime_resume(sdev->request_queue, 0);
102+
else
103+
blk_set_runtime_active(sdev->request_queue);
98104
}
99105
}
100106

drivers/target/target_core_transport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,6 +3350,7 @@ static void target_tmr_work(struct work_struct *work)
33503350

33513351
cmd->se_tfo->queue_tm_rsp(cmd);
33523352

3353+
transport_lun_remove_cmd(cmd);
33533354
transport_cmd_check_stop_to_fabric(cmd);
33543355
return;
33553356

0 commit comments

Comments
 (0)