Lines Matching refs:wrk
465 struct storvsc_scan_work *wrk; in storvsc_device_scan() local
468 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_device_scan()
470 sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); in storvsc_device_scan()
477 kfree(wrk); in storvsc_device_scan()
511 struct storvsc_scan_work *wrk; in storvsc_remove_lun() local
514 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_remove_lun()
515 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun()
518 sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); in storvsc_remove_lun()
524 scsi_host_put(wrk->host); in storvsc_remove_lun()
527 kfree(wrk); in storvsc_remove_lun()
973 struct storvsc_scan_work *wrk; in storvsc_handle_error() local
1048 wrk = kmalloc(sizeof(struct storvsc_scan_work), GFP_ATOMIC); in storvsc_handle_error()
1049 if (!wrk) { in storvsc_handle_error()
1054 wrk->host = host; in storvsc_handle_error()
1055 wrk->lun = vm_srb->lun; in storvsc_handle_error()
1056 wrk->tgt_id = vm_srb->target_id; in storvsc_handle_error()
1057 INIT_WORK(&wrk->work, process_err_fn); in storvsc_handle_error()
1058 queue_work(host_dev->handle_error_wq, &wrk->work); in storvsc_handle_error()