Remove Scsi_Host.uspace_req_q
PATCH 1/1 Remove Scsi_Host.uspace_req_q
A patch I wrote myself several years ago removed SCSI target support from the code under drivers/scsi. That patch removed the code that sets uspace_req_q to a non-NULL value. Hence also remove the code that depends on uspace_req_q != NULL.
References: commit 066465251303 ("tgt: removal")
Signed-off-by Bart Van Assche <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Johannes Thumshirn <[email protected]>
--- drivers/scsi/hosts.c | 8 -------- include/scsi/scsi_host.h | 6 ------ 2 files changed, 14 deletions(-)
drivers/scsi/hosts.c +0 -8
@@ -315,8 +315,6 @@ static void scsi_host_dev_release(struct device *dev) {struct Scsi_Host *shost =dev_to_shost (dev);struct device *parent = dev->parent; -struct request_queue *q; -void *queuedata;scsi_proc_hostdir_rm (shost->hostt);
@@ -326,12 +324,6 @@ static void scsi_host_dev_release(struct device *dev)kthread_stop (shost->ehandler);if (shost->work_q)destroy_workqueue (shost->work_q); - q = shost->uspace_req_q; -if (q) { - queuedata = q->queuedata; -blk_cleanup_queue (q); -kfree (queuedata); - }if (shost->shost_state ==SHOST_CREATED ) {/*
include/scsi/scsi_host.h +0 -6
@@ -691,12 +691,6 @@ struct Scsi_Host {unsigned int prot_capabilities;unsigned char prot_guard_type; -/* -* q used for scsi_tgt msgs, async events or any other requests that -* need to be processed in userspace -*/ -struct request_queue *uspace_req_q; -/* legacy crap */ unsigned long base;unsigned long io_port;
Signature · 1 line
2.14.1
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>
Signature · 6 lines
Johannes Thumshirn Storage [email protected] +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
Looks fine,
Reviewed-by Christoph Hellwig <[email protected]>
Martin K. Petersen
AppliedBart,
Quoted 4 lines
A patch I wrote myself several years ago removed SCSI target support from the code under
drivers/scsi. That patch removed the code that setsuspace_req_qto a non-NULL value. Hence also remove the code that depends onuspace_req_q!= NULL.
Applied to 4.14/scsi-queue. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering