Lines Matching refs:wrk
507 struct storvsc_scan_work *wrk; in storvsc_device_scan() local
510 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_device_scan()
512 sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); in storvsc_device_scan()
519 kfree(wrk); in storvsc_device_scan()
553 struct storvsc_scan_work *wrk; in storvsc_remove_lun() local
556 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_remove_lun()
557 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun()
560 sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); in storvsc_remove_lun()
566 scsi_host_put(wrk->host); in storvsc_remove_lun()
569 kfree(wrk); in storvsc_remove_lun()
999 struct storvsc_scan_work *wrk; in storvsc_handle_error() local
1058 wrk = kmalloc(sizeof(struct storvsc_scan_work), GFP_ATOMIC); in storvsc_handle_error()
1059 if (!wrk) { in storvsc_handle_error()
1064 wrk->host = host; in storvsc_handle_error()
1065 wrk->lun = vm_srb->lun; in storvsc_handle_error()
1066 wrk->tgt_id = vm_srb->target_id; in storvsc_handle_error()
1067 INIT_WORK(&wrk->work, process_err_fn); in storvsc_handle_error()
1068 queue_work(host_dev->handle_error_wq, &wrk->work); in storvsc_handle_error()