Skip to content

Commit cc4238b

Browse files
committed
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "A tiny update: one patch corrects a Kconfig problem with the shift of the SAS SMP code to BSG and the other removes a vestige of user space target mode" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: scsi_transport_sas: select BLK_DEV_BSGLIB scsi: Remove Scsi_Host.uspace_req_q
2 parents 80a0d64 + 580b71e commit cc4238b

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

drivers/scsi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ config SCSI_ISCSI_ATTRS
283283
config SCSI_SAS_ATTRS
284284
tristate "SAS Transport Attributes"
285285
depends on SCSI
286-
select BLK_DEV_BSG
286+
select BLK_DEV_BSGLIB
287287
help
288288
If you wish to export transport-specific information about
289289
each attached SAS device to sysfs, say Y.

drivers/scsi/hosts.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ static void scsi_host_dev_release(struct device *dev)
315315
{
316316
struct Scsi_Host *shost = dev_to_shost(dev);
317317
struct device *parent = dev->parent;
318-
struct request_queue *q;
319-
void *queuedata;
320318

321319
scsi_proc_hostdir_rm(shost->hostt);
322320

@@ -326,12 +324,6 @@ static void scsi_host_dev_release(struct device *dev)
326324
kthread_stop(shost->ehandler);
327325
if (shost->work_q)
328326
destroy_workqueue(shost->work_q);
329-
q = shost->uspace_req_q;
330-
if (q) {
331-
queuedata = q->queuedata;
332-
blk_cleanup_queue(q);
333-
kfree(queuedata);
334-
}
335327

336328
if (shost->shost_state == SHOST_CREATED) {
337329
/*

include/scsi/scsi_host.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,6 @@ struct Scsi_Host {
691691
unsigned int prot_capabilities;
692692
unsigned char prot_guard_type;
693693

694-
/*
695-
* q used for scsi_tgt msgs, async events or any other requests that
696-
* need to be processed in userspace
697-
*/
698-
struct request_queue *uspace_req_q;
699-
700694
/* legacy crap */
701695
unsigned long base;
702696
unsigned long io_port;

0 commit comments

Comments
 (0)