/fs/proc/ |
D | base.c | 155 static struct fs_struct *get_fs_struct(struct task_struct *task) in get_fs_struct() argument 158 task_lock(task); in get_fs_struct() 159 fs = task->fs; in get_fs_struct() 162 task_unlock(task); in get_fs_struct() 180 struct task_struct *task = get_proc_task(inode); in proc_cwd_link() local 184 if (task) { in proc_cwd_link() 185 fs = get_fs_struct(task); in proc_cwd_link() 186 put_task_struct(task); in proc_cwd_link() 201 struct task_struct *task = get_proc_task(inode); in proc_root_link() local 205 if (task) { in proc_root_link() [all …]
|
D | array.c | 324 struct pid *pid, struct task_struct *task) in proc_pid_status() argument 326 struct mm_struct *mm = get_task_mm(task); in proc_pid_status() 328 task_name(m, task); in proc_pid_status() 329 task_state(m, ns, pid, task); in proc_pid_status() 335 task_sig(m, task); in proc_pid_status() 336 task_cap(m, task); in proc_pid_status() 337 cpuset_task_status_allowed(m, task); in proc_pid_status() 339 task_show_regs(m, task); in proc_pid_status() 341 task_context_switch_counts(m, task); in proc_pid_status() 346 struct pid *pid, struct task_struct *task, int whole) in do_task_stat() argument [all …]
|
D | task_mmu.c | 102 priv->task = NULL; in m_start() 115 priv->task = get_pid_task(priv->pid, PIDTYPE_PID); in m_start() 116 if (!priv->task) in m_start() 119 mm = mm_for_maps(priv->task); in m_start() 123 tail_vma = get_gate_vma(priv->task); in m_start() 178 if (priv->task) in m_stop() 179 put_task_struct(priv->task); in m_stop() 260 struct task_struct *task = priv->task; in show_map() local 265 m->version = (vma != get_gate_vma(task))? vma->vm_start: 0; in show_map() 374 struct task_struct *task = priv->task; in show_smap() local [all …]
|
D | task_nommu.c | 179 priv->task = get_pid_task(priv->pid, PIDTYPE_PID); in m_start() 180 if (!priv->task) in m_start() 183 mm = mm_for_maps(priv->task); in m_start() 185 put_task_struct(priv->task); in m_start() 186 priv->task = NULL; in m_start() 201 if (priv->task) { in m_stop() 202 struct mm_struct *mm = priv->task->mm; in m_stop() 205 put_task_struct(priv->task); in m_stop()
|
D | internal.h | 47 struct pid *pid, struct task_struct *task); 49 struct pid *pid, struct task_struct *task); 51 struct pid *pid, struct task_struct *task); 53 struct pid *pid, struct task_struct *task);
|
D | proc_net.c | 104 struct task_struct *task; in get_proc_task_net() local 109 task = pid_task(proc_pid(dir), PIDTYPE_PID); in get_proc_task_net() 110 if (task != NULL) { in get_proc_task_net() 111 ns = task_nsproxy(task); in get_proc_task_net()
|
/fs/nfs/ |
D | direct.c | 229 static void nfs_direct_read_result(struct rpc_task *task, void *calldata) in nfs_direct_read_result() argument 233 nfs_readpage_result(task, data); in nfs_direct_read_result() 241 int status = data->task.tk_status; in nfs_direct_read_release() 282 struct rpc_task *task; in nfs_direct_read_schedule_segment() local 345 task_setup_data.task = &data->task; in nfs_direct_read_schedule_segment() 349 task = rpc_run_task(&task_setup_data); in nfs_direct_read_schedule_segment() 350 if (IS_ERR(task)) in nfs_direct_read_schedule_segment() 352 rpc_put_task(task); in nfs_direct_read_schedule_segment() 356 data->task.tk_pid, in nfs_direct_read_schedule_segment() 451 struct rpc_task *task; in nfs_direct_write_reschedule() local [all …]
|
D | read.c | 162 struct rpc_task *task; in nfs_read_rpcsetup() local 169 .task = &data->task, in nfs_read_rpcsetup() 198 data->task.tk_pid, in nfs_read_rpcsetup() 204 task = rpc_run_task(&task_setup_data); in nfs_read_rpcsetup() 205 if (IS_ERR(task)) in nfs_read_rpcsetup() 206 return PTR_ERR(task); in nfs_read_rpcsetup() 207 rpc_put_task(task); in nfs_read_rpcsetup() 328 int nfs_readpage_result(struct rpc_task *task, struct nfs_read_data *data) in nfs_readpage_result() argument 332 dprintk("NFS: %s: %5u, (status %d)\n", __func__, task->tk_pid, in nfs_readpage_result() 333 task->tk_status); in nfs_readpage_result() [all …]
|
D | callback.c | 32 struct task_struct *task; member 117 if (nfs_callback_info.users++ || nfs_callback_info.task != NULL) in nfs_callback_up() 142 nfs_callback_info.task = kthread_run(nfs_callback_svc, in nfs_callback_up() 145 if (IS_ERR(nfs_callback_info.task)) { in nfs_callback_up() 146 ret = PTR_ERR(nfs_callback_info.task); in nfs_callback_up() 149 nfs_callback_info.task = NULL; in nfs_callback_up() 177 if (nfs_callback_info.users == 0 && nfs_callback_info.task != NULL) { in nfs_callback_down() 178 kthread_stop(nfs_callback_info.task); in nfs_callback_down() 181 nfs_callback_info.task = NULL; in nfs_callback_down()
|
D | nfs4proc.c | 395 static int nfs4_wait_for_completion_rpc_task(struct rpc_task *task) in nfs4_wait_for_completion_rpc_task() argument 399 ret = rpc_wait_for_completion_task(task); in nfs4_wait_for_completion_rpc_task() 828 static void nfs4_open_confirm_done(struct rpc_task *task, void *calldata) in nfs4_open_confirm_done() argument 832 data->rpc_status = task->tk_status; in nfs4_open_confirm_done() 833 if (RPC_ASSASSINATED(task)) in nfs4_open_confirm_done() 873 struct rpc_task *task; in _nfs4_proc_open_confirm() local 894 task = rpc_run_task(&task_setup_data); in _nfs4_proc_open_confirm() 895 if (IS_ERR(task)) in _nfs4_proc_open_confirm() 896 return PTR_ERR(task); in _nfs4_proc_open_confirm() 897 status = nfs4_wait_for_completion_rpc_task(task); in _nfs4_proc_open_confirm() [all …]
|
D | write.c | 790 struct rpc_task *task; in nfs_write_rpcsetup() local 798 .task = &data->task, in nfs_write_rpcsetup() 837 data->task.tk_pid, in nfs_write_rpcsetup() 843 task = rpc_run_task(&task_setup_data); in nfs_write_rpcsetup() 844 if (IS_ERR(task)) in nfs_write_rpcsetup() 845 return PTR_ERR(task); in nfs_write_rpcsetup() 846 rpc_put_task(task); in nfs_write_rpcsetup() 977 static void nfs_writeback_done_partial(struct rpc_task *task, void *calldata) in nfs_writeback_done_partial() argument 982 task->tk_pid, in nfs_writeback_done_partial() 988 nfs_writeback_done(task, data); in nfs_writeback_done_partial() [all …]
|
D | unlink.c | 79 static void nfs_async_unlink_done(struct rpc_task *task, void *calldata) in nfs_async_unlink_done() argument 84 if (!NFS_PROTO(dir)->unlink_done(task, dir)) in nfs_async_unlink_done() 85 rpc_restart_call(task); in nfs_async_unlink_done() 124 struct rpc_task *task; in nfs_do_call_unlink() local 160 task = rpc_run_task(&task_setup_data); in nfs_do_call_unlink() 161 if (!IS_ERR(task)) in nfs_do_call_unlink() 162 rpc_put_task(task); in nfs_do_call_unlink()
|
D | nfs3proc.c | 44 nfs3_async_handle_jukebox(struct rpc_task *task, struct inode *inode) in nfs3_async_handle_jukebox() argument 46 if (task->tk_status != -EJUKEBOX) in nfs3_async_handle_jukebox() 49 task->tk_status = 0; in nfs3_async_handle_jukebox() 50 rpc_restart_call(task); in nfs3_async_handle_jukebox() 51 rpc_delay(task, NFS_JUKEBOX_RETRY_TIME); in nfs3_async_handle_jukebox() 416 nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir) in nfs3_proc_unlink_done() argument 419 if (nfs3_async_handle_jukebox(task, dir)) in nfs3_proc_unlink_done() 421 res = task->tk_msg.rpc_resp; in nfs3_proc_unlink_done() 753 static int nfs3_read_done(struct rpc_task *task, struct nfs_read_data *data) in nfs3_read_done() argument 755 if (nfs3_async_handle_jukebox(task, data->inode)) in nfs3_read_done() [all …]
|
D | proc.c | 309 static int nfs_proc_unlink_done(struct rpc_task *task, struct inode *dir) in nfs_proc_unlink_done() argument 562 static int nfs_read_done(struct rpc_task *task, struct nfs_read_data *data) in nfs_read_done() argument 565 if (task->tk_status >= 0) { in nfs_read_done() 581 static int nfs_write_done(struct rpc_task *task, struct nfs_write_data *data) in nfs_write_done() argument 583 if (task->tk_status >= 0) in nfs_write_done()
|
D | nfs4state.c | 753 int nfs_wait_on_sequence(struct nfs_seqid *seqid, struct rpc_task *task) in nfs_wait_on_sequence() argument 763 rpc_sleep_on(&sequence->wait, task, NULL); in nfs_wait_on_sequence() 786 struct task_struct *task; in nfs4_schedule_state_manager() local 792 task = kthread_run(nfs4_run_state_manager, clp, "%s-manager", in nfs4_schedule_state_manager() 795 if (!IS_ERR(task)) in nfs4_schedule_state_manager()
|
D | nfs4_fs.h | 236 extern int nfs_wait_on_sequence(struct nfs_seqid *seqid, struct rpc_task *task);
|
/fs/lockd/ |
D | clntproc.c | 358 struct rpc_task *task; in nlm_do_async_call() local 360 task = __nlm_async_call(req, proc, msg, tk_ops); in nlm_do_async_call() 361 if (IS_ERR(task)) in nlm_do_async_call() 362 return PTR_ERR(task); in nlm_do_async_call() 363 rpc_put_task(task); in nlm_do_async_call() 402 struct rpc_task *task; in nlmclnt_async_call() local 405 task = __nlm_async_call(req, proc, &msg, tk_ops); in nlmclnt_async_call() 406 if (IS_ERR(task)) in nlmclnt_async_call() 407 return PTR_ERR(task); in nlmclnt_async_call() 408 err = rpc_wait_for_completion_task(task); in nlmclnt_async_call() [all …]
|
D | clntlock.c | 244 struct task_struct *task; in nlmclnt_recovery() local 248 task = kthread_run(reclaimer, host, "%s-reclaim", host->h_name); in nlmclnt_recovery() 249 if (IS_ERR(task)) in nlmclnt_recovery() 252 "(%ld)\n", host->h_name, PTR_ERR(task)); in nlmclnt_recovery()
|
D | svc4proc.c | 229 static void nlm4svc_callback_exit(struct rpc_task *task, void *data) in nlm4svc_callback_exit() argument 231 dprintk("lockd: %5u callback returned %d\n", task->tk_pid, in nlm4svc_callback_exit() 232 -task->tk_status); in nlm4svc_callback_exit()
|
D | svcproc.c | 259 static void nlmsvc_callback_exit(struct rpc_task *task, void *data) in nlmsvc_callback_exit() argument 261 dprintk("lockd: %5u callback returned %d\n", task->tk_pid, in nlmsvc_callback_exit() 262 -task->tk_status); in nlmsvc_callback_exit()
|
/fs/ |
D | ioprio.c | 30 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument 37 tcred = __task_cred(task); in set_task_ioprio() 45 err = security_task_setioprio(task, ioprio); in set_task_ioprio() 49 task_lock(task); in set_task_ioprio() 51 ioc = task->io_context; in set_task_ioprio() 62 task->io_context = ioc; in set_task_ioprio() 70 task_unlock(task); in set_task_ioprio()
|
D | binfmt_elf.c | 1439 struct task_struct *task; member 1457 static void do_thread_regset_writeback(struct task_struct *task, in do_thread_regset_writeback() argument 1461 regset->writeback(task, regset, 1); in do_thread_regset_writeback() 1476 fill_prstatus(&t->prstatus, t->task, signr); in fill_thread_core_info() 1477 (void) view->regsets[0].get(t->task, &view->regsets[0], in fill_thread_core_info() 1485 do_thread_regset_writeback(t->task, &view->regsets[0]); in fill_thread_core_info() 1494 do_thread_regset_writeback(t->task, regset); in fill_thread_core_info() 1496 (!regset->active || regset->active(t->task, regset))) { in fill_thread_core_info() 1502 ret = regset->get(t->task, regset, in fill_thread_core_info() 1578 t->task = ct->task; in fill_note_info() [all …]
|
D | exec.c | 1625 core_state->dumper.task = tsk; in coredump_wait() 1652 struct task_struct *task; in coredump_finish() local 1657 task = curr->task; in coredump_finish() 1663 curr->task = NULL; in coredump_finish() 1664 wake_up_process(task); in coredump_finish()
|
/fs/ecryptfs/ |
D | messaging.c | 67 (*msg_ctx)->task = current; in ecryptfs_acquire_free_msg_ctx() 203 (*daemon)->task = current; in ecryptfs_spawn_daemon() 287 if (daemon->task) in ecryptfs_exorcise_daemon() 288 wake_up_process(daemon->task); in ecryptfs_exorcise_daemon() 379 nsproxy = task_nsproxy(msg_ctx->task); in ecryptfs_process_response() 388 tsk_user_ns = __task_cred(msg_ctx->task)->user->user_ns; in ecryptfs_process_response() 389 ctx_euid = task_euid(msg_ctx->task); in ecryptfs_process_response() 446 wake_up_process(msg_ctx->task); in ecryptfs_process_response() 604 ecryptfs_msg_ctx_arr[i].task = NULL; in ecryptfs_init_messaging()
|
/fs/btrfs/ |
D | async-thread.c | 45 struct task_struct *task; member 232 kthread_stop(worker->task); in btrfs_stop_workers() 276 worker->task = kthread_run(worker_loop, worker, in btrfs_start_workers() 280 if (IS_ERR(worker->task)) { in btrfs_start_workers() 282 ret = PTR_ERR(worker->task); in btrfs_start_workers() 416 wake_up_process(worker->task); in btrfs_requeue_work() 461 wake_up_process(worker->task); in btrfs_queue_worker()
|