Lines Matching refs:wrk
488 struct storvsc_scan_work *wrk; in storvsc_device_scan() local
491 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_device_scan()
493 sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); in storvsc_device_scan()
500 kfree(wrk); in storvsc_device_scan()
505 struct storvsc_scan_work *wrk; in storvsc_host_scan() local
509 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_host_scan()
510 host = wrk->host; in storvsc_host_scan()
532 kfree(wrk); in storvsc_host_scan()
537 struct storvsc_scan_work *wrk; in storvsc_remove_lun() local
540 wrk = container_of(work, struct storvsc_scan_work, work); in storvsc_remove_lun()
541 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun()
544 sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); in storvsc_remove_lun()
550 scsi_host_put(wrk->host); in storvsc_remove_lun()
553 kfree(wrk); in storvsc_remove_lun()
886 struct storvsc_scan_work *wrk; in storvsc_handle_error() local
945 wrk = kmalloc(sizeof(struct storvsc_scan_work), GFP_ATOMIC); in storvsc_handle_error()
946 if (!wrk) { in storvsc_handle_error()
951 wrk->host = host; in storvsc_handle_error()
952 wrk->lun = vm_srb->lun; in storvsc_handle_error()
953 wrk->tgt_id = vm_srb->target_id; in storvsc_handle_error()
954 INIT_WORK(&wrk->work, process_err_fn); in storvsc_handle_error()
955 schedule_work(&wrk->work); in storvsc_handle_error()