Commit 184eb8ff authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] remove dead struct scsi_device members

->scpnt_wait is initialized and cpqfc calls wake_up on it but no one
ever waits for it, ->allow_revalidate is completly unused.
parent d7fd7940
...@@ -677,11 +677,6 @@ int cpqfcTS_ioctl( Scsi_Device *ScsiDev, int Cmnd, void *arg) ...@@ -677,11 +677,6 @@ int cpqfcTS_ioctl( Scsi_Device *ScsiDev, int Cmnd, void *arg)
scsi_release_request(ScsiPassThruReq); // "de-allocate" scsi_release_request(ScsiPassThruReq); // "de-allocate"
ScsiPassThruReq = NULL; ScsiPassThruReq = NULL;
// if (!SDpnt->was_reset && SDpnt->scsi_request_fn)
// (*SDpnt->scsi_request_fn)();
wake_up(&SDpnt->scpnt_wait);
// need to pass data back to user (space)? // need to pass data back to user (space)?
if( (vendor_cmd->rw_flag == VENDOR_READ_OPCODE) && if( (vendor_cmd->rw_flag == VENDOR_READ_OPCODE) &&
vendor_cmd->len ) vendor_cmd->len )
...@@ -1656,10 +1651,6 @@ return -ENOTSUPP; ...@@ -1656,10 +1651,6 @@ return -ENOTSUPP;
scsi_put_command(SCpnt); scsi_put_command(SCpnt);
SCpnt = NULL; SCpnt = NULL;
// if (!SDpnt->was_reset && SDpnt->scsi_request_fn)
// (*SDpnt->scsi_request_fn)();
wake_up(&SDpnt->scpnt_wait);
// printk(" LEAVING cpqfcTS_TargetDeviceReset() - return SUCCESS \n"); // printk(" LEAVING cpqfcTS_TargetDeviceReset() - return SUCCESS \n");
return SUCCESS; return SUCCESS;
} }
......
...@@ -323,8 +323,6 @@ struct scsi_device { ...@@ -323,8 +323,6 @@ struct scsi_device {
*/ */
struct list_head siblings; /* list of all devices on this host */ struct list_head siblings; /* list of all devices on this host */
struct list_head same_target_siblings; /* just the devices sharing same target id */ struct list_head same_target_siblings; /* just the devices sharing same target id */
wait_queue_head_t scpnt_wait; /* Used to wait if
device is busy */
struct Scsi_Host *host; struct Scsi_Host *host;
request_queue_t *request_queue; request_queue_t *request_queue;
volatile unsigned short device_busy; /* commands actually active on low-level */ volatile unsigned short device_busy; /* commands actually active on low-level */
...@@ -402,9 +400,6 @@ struct scsi_device { ...@@ -402,9 +400,6 @@ struct scsi_device {
/* default value if the device doesn't override */ /* default value if the device doesn't override */
#define SCSI_DEFAULT_DEVICE_BLOCKED 3 #define SCSI_DEFAULT_DEVICE_BLOCKED 3
// Flag to allow revalidate to succeed in sd_open
int allow_revalidate;
struct device sdev_driverfs_dev; struct device sdev_driverfs_dev;
}; };
#define to_scsi_device(d) \ #define to_scsi_device(d) \
......
...@@ -429,7 +429,6 @@ static struct scsi_device *scsi_alloc_sdev(struct Scsi_Host *shost, ...@@ -429,7 +429,6 @@ static struct scsi_device *scsi_alloc_sdev(struct Scsi_Host *shost,
sdev->request_queue->queuedata = sdev; sdev->request_queue->queuedata = sdev;
scsi_adjust_queue_depth(sdev, 0, sdev->host->cmd_per_lun); scsi_adjust_queue_depth(sdev, 0, sdev->host->cmd_per_lun);
init_waitqueue_head(&sdev->scpnt_wait);
if (shost->hostt->slave_alloc) { if (shost->hostt->slave_alloc) {
if (shost->hostt->slave_alloc(sdev)) if (shost->hostt->slave_alloc(sdev))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment