Lines Matching refs:wrk
457 struct storvsc_scan_work *wrk; in storvsc_device_scan() local
461 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_device_scan()
462 lun = wrk->lun; in storvsc_device_scan()
464 sdev = scsi_device_lookup(wrk->host, 0, 0, lun); in storvsc_device_scan()
471 kfree(wrk); in storvsc_device_scan()
476 struct storvsc_scan_work *wrk; in storvsc_host_scan() local
480 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_host_scan()
481 host = wrk->host; in storvsc_host_scan()
503 kfree(wrk); in storvsc_host_scan()
508 struct storvsc_scan_work *wrk; in storvsc_remove_lun() local
511 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_remove_lun()
512 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun()
515 sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); in storvsc_remove_lun()
521 scsi_host_put(wrk->host); in storvsc_remove_lun()
524 kfree(wrk); in storvsc_remove_lun()
860 struct storvsc_scan_work *wrk; in storvsc_handle_error() local
911 wrk = kmalloc(sizeof(struct storvsc_scan_work), GFP_ATOMIC); in storvsc_handle_error()
912 if (!wrk) { in storvsc_handle_error()
917 wrk->host = host; in storvsc_handle_error()
918 wrk->lun = vm_srb->lun; in storvsc_handle_error()
919 INIT_WORK(&wrk->work, process_err_fn); in storvsc_handle_error()
920 schedule_work(&wrk->work); in storvsc_handle_error()