Lines Matching full:work
21 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, GFP_KERNEL); in ksmbd_alloc_work_struct() local
23 if (work) { in ksmbd_alloc_work_struct()
24 work->compound_fid = KSMBD_NO_FID; in ksmbd_alloc_work_struct()
25 work->compound_pfid = KSMBD_NO_FID; in ksmbd_alloc_work_struct()
26 INIT_LIST_HEAD(&work->request_entry); in ksmbd_alloc_work_struct()
27 INIT_LIST_HEAD(&work->async_request_entry); in ksmbd_alloc_work_struct()
28 INIT_LIST_HEAD(&work->fp_entry); in ksmbd_alloc_work_struct()
29 INIT_LIST_HEAD(&work->interim_entry); in ksmbd_alloc_work_struct()
31 return work; in ksmbd_alloc_work_struct()
34 void ksmbd_free_work_struct(struct ksmbd_work *work) in ksmbd_free_work_struct() argument
36 WARN_ON(work->saved_cred != NULL); in ksmbd_free_work_struct()
38 kvfree(work->response_buf); in ksmbd_free_work_struct()
39 kvfree(work->aux_payload_buf); in ksmbd_free_work_struct()
40 kfree(work->tr_buf); in ksmbd_free_work_struct()
41 kvfree(work->request_buf); in ksmbd_free_work_struct()
42 if (work->async_id) in ksmbd_free_work_struct()
43 ksmbd_release_id(&work->conn->async_ida, work->async_id); in ksmbd_free_work_struct()
44 kmem_cache_free(work_cache, work); in ksmbd_free_work_struct()
76 bool ksmbd_queue_work(struct ksmbd_work *work) in ksmbd_queue_work() argument
78 return queue_work(ksmbd_wq, &work->work); in ksmbd_queue_work()