| .. | .. |
|---|
| 180 | 180 | scsi_forget_host(shost); |
|---|
| 181 | 181 | mutex_unlock(&shost->scan_mutex); |
|---|
| 182 | 182 | scsi_proc_host_rm(shost); |
|---|
| 183 | + scsi_proc_hostdir_rm(shost->hostt); |
|---|
| 183 | 184 | |
|---|
| 184 | 185 | spin_lock_irqsave(shost->host_lock, flags); |
|---|
| 185 | 186 | if (scsi_host_set_state(shost, SHOST_DEL)) |
|---|
| .. | .. |
|---|
| 321 | 322 | struct Scsi_Host *shost = dev_to_shost(dev); |
|---|
| 322 | 323 | struct device *parent = dev->parent; |
|---|
| 323 | 324 | |
|---|
| 324 | | - scsi_proc_hostdir_rm(shost->hostt); |
|---|
| 325 | | - |
|---|
| 326 | | - /* Wait for functions invoked through call_rcu(&shost->rcu, ...) */ |
|---|
| 325 | + /* Wait for functions invoked through call_rcu(&scmd->rcu, ...) */ |
|---|
| 327 | 326 | rcu_barrier(); |
|---|
| 328 | 327 | |
|---|
| 329 | 328 | if (shost->tmf_work_q) |
|---|