Lines Matching refs:wrk
407 struct storvsc_scan_work *wrk; in storvsc_device_scan() local
411 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_device_scan()
412 lun = wrk->lun; in storvsc_device_scan()
414 sdev = scsi_device_lookup(wrk->host, 0, 0, lun); in storvsc_device_scan()
421 kfree(wrk); in storvsc_device_scan()
426 struct storvsc_scan_work *wrk; in storvsc_host_scan() local
431 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_host_scan()
432 host = wrk->host; in storvsc_host_scan()
460 kfree(wrk); in storvsc_host_scan()
465 struct storvsc_scan_work *wrk; in storvsc_remove_lun() local
468 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_remove_lun()
469 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun()
472 sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); in storvsc_remove_lun()
478 scsi_host_put(wrk->host); in storvsc_remove_lun()
481 kfree(wrk); in storvsc_remove_lun()
1037 struct storvsc_scan_work *wrk; in storvsc_handle_error() local
1087 wrk = kmalloc(sizeof(struct storvsc_scan_work), GFP_ATOMIC); in storvsc_handle_error()
1088 if (!wrk) { in storvsc_handle_error()
1093 wrk->host = host; in storvsc_handle_error()
1094 wrk->lun = vm_srb->lun; in storvsc_handle_error()
1095 INIT_WORK(&wrk->work, process_err_fn); in storvsc_handle_error()
1096 schedule_work(&wrk->work); in storvsc_handle_error()