diff options
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r-- | drivers/scsi/ipr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 2d83fbb806a5..ccd4dafce8e2 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -2307,7 +2307,7 @@ static void ipr_release_dump(struct kref *kref) | |||
2307 | 2307 | ||
2308 | /** | 2308 | /** |
2309 | * ipr_worker_thread - Worker thread | 2309 | * ipr_worker_thread - Worker thread |
2310 | * @data: ioa config struct | 2310 | * @work: ioa config struct |
2311 | * | 2311 | * |
2312 | * Called at task level from a work thread. This function takes care | 2312 | * Called at task level from a work thread. This function takes care |
2313 | * of adding and removing device from the mid-layer as configuration | 2313 | * of adding and removing device from the mid-layer as configuration |
@@ -2316,13 +2316,14 @@ static void ipr_release_dump(struct kref *kref) | |||
2316 | * Return value: | 2316 | * Return value: |
2317 | * nothing | 2317 | * nothing |
2318 | **/ | 2318 | **/ |
2319 | static void ipr_worker_thread(void *data) | 2319 | static void ipr_worker_thread(struct work_struct *work) |
2320 | { | 2320 | { |
2321 | unsigned long lock_flags; | 2321 | unsigned long lock_flags; |
2322 | struct ipr_resource_entry *res; | 2322 | struct ipr_resource_entry *res; |
2323 | struct scsi_device *sdev; | 2323 | struct scsi_device *sdev; |
2324 | struct ipr_dump *dump; | 2324 | struct ipr_dump *dump; |
2325 | struct ipr_ioa_cfg *ioa_cfg = data; | 2325 | struct ipr_ioa_cfg *ioa_cfg = |
2326 | container_of(work, struct ipr_ioa_cfg, work_q); | ||
2326 | u8 bus, target, lun; | 2327 | u8 bus, target, lun; |
2327 | int did_work; | 2328 | int did_work; |
2328 | 2329 | ||
@@ -7121,7 +7122,7 @@ static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, | |||
7121 | INIT_LIST_HEAD(&ioa_cfg->hostrcb_pending_q); | 7122 | INIT_LIST_HEAD(&ioa_cfg->hostrcb_pending_q); |
7122 | INIT_LIST_HEAD(&ioa_cfg->free_res_q); | 7123 | INIT_LIST_HEAD(&ioa_cfg->free_res_q); |
7123 | INIT_LIST_HEAD(&ioa_cfg->used_res_q); | 7124 | INIT_LIST_HEAD(&ioa_cfg->used_res_q); |
7124 | INIT_WORK(&ioa_cfg->work_q, ipr_worker_thread, ioa_cfg); | 7125 | INIT_WORK(&ioa_cfg->work_q, ipr_worker_thread); |
7125 | init_waitqueue_head(&ioa_cfg->reset_wait_q); | 7126 | init_waitqueue_head(&ioa_cfg->reset_wait_q); |
7126 | ioa_cfg->sdt_state = INACTIVE; | 7127 | ioa_cfg->sdt_state = INACTIVE; |
7127 | if (ipr_enable_cache) | 7128 | if (ipr_enable_cache) |