diff options
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
| -rw-r--r-- | drivers/scsi/scsi_sysfs.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index b6378c8ca783..32489d25158f 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -373,7 +373,6 @@ shost_rd_attr(cmd_per_lun, "%hd\n");  shost_rd_attr(can_queue, "%d\n");  shost_rd_attr(sg_tablesize, "%hu\n");  shost_rd_attr(sg_prot_tablesize, "%hu\n"); -shost_rd_attr(unchecked_isa_dma, "%d\n");  shost_rd_attr(prot_capabilities, "%u\n");  shost_rd_attr(prot_guard_type, "%hd\n");  shost_rd_attr2(proc_name, hostt->proc_name, "%s\n"); @@ -411,7 +410,6 @@ static struct attribute *scsi_sysfs_shost_attrs[] = {  	&dev_attr_can_queue.attr,  	&dev_attr_sg_tablesize.attr,  	&dev_attr_sg_prot_tablesize.attr, -	&dev_attr_unchecked_isa_dma.attr,  	&dev_attr_proc_name.attr,  	&dev_attr_scan.attr,  	&dev_attr_hstate.attr, @@ -477,6 +475,8 @@ static void scsi_device_dev_release_usercontext(struct work_struct *work)  	/* NULL queue means the device can't be used */  	sdev->request_queue = NULL; +	sbitmap_free(&sdev->budget_map); +  	mutex_lock(&sdev->inquiry_mutex);  	vpd_pg0 = rcu_replace_pointer(sdev->vpd_pg0, vpd_pg0,  				       lockdep_is_held(&sdev->inquiry_mutex)); @@ -670,7 +670,7 @@ sdev_show_device_busy(struct device *dev, struct device_attribute *attr,  		char *buf)  {  	struct scsi_device *sdev = to_scsi_device(dev); -	return snprintf(buf, 20, "%d\n", atomic_read(&sdev->device_busy)); +	return snprintf(buf, 20, "%d\n", scsi_device_busy(sdev));  }  static DEVICE_ATTR(device_busy, S_IRUGO, sdev_show_device_busy, NULL); @@ -1458,7 +1458,7 @@ void __scsi_remove_device(struct scsi_device *sdev)  	/*  	 * Paired with the kref_get() in scsi_sysfs_initialize().  We have -	 * remoed sysfs visibility from the device, so make the target +	 * removed sysfs visibility from the device, so make the target  	 * invisible if this was the last device underneath it.  	 */  	scsi_target_reap(scsi_target(sdev)); | 
