| /fs/proc/ |
| A D | base.c | 226 if (task) { in proc_cwd_link() 243 if (task) { in proc_root_link() 533 if (!task) in lstats_show_proc() 567 if (!task) in lstats_write() 773 if (!task) in proc_pid_permission() 809 if (!task) in proc_single_show() 842 if (!task) in proc_mem_open() 1111 if (!task) in oom_adj_read() 1132 if (!task) in __set_oom_adj() 1269 if (!task) in oom_score_adj_read() [all …]
|
| A D | array.c | 457 task_sig(m, task); in proc_pid_status() 458 task_cap(m, task); in proc_pid_status() 459 task_seccomp(m, task); in proc_pid_status() 491 mm = get_task_mm(task); in do_task_stat() 505 eip = KSTK_EIP(task); in do_task_stat() 506 esp = KSTK_ESP(task); in do_task_stat() 507 put_task_stack(task); in do_task_stat() 575 min_flt = task->min_flt; in do_task_stat() 583 nice = task_nice(task); in do_task_stat() 737 if (task && task->real_parent == start && in get_children_pid() [all …]
|
| A D | fd.c | 28 struct task_struct *task; in seq_show() local 31 if (!task) in seq_show() 34 task_lock(task); in seq_show() 35 files = task->files; in seq_show() 51 task_unlock(task); in seq_show() 52 put_task_struct(task); in seq_show() 91 if (!task) in proc_fdinfo_permission() 95 put_task_struct(task); in proc_fdinfo_permission() 157 if (task) { in tid_fd_revalidate() 180 if (task) { in proc_fd_link() [all …]
|
| A D | namespaces.c | 47 struct task_struct *task; in proc_ns_get_link() local 54 task = get_proc_task(inode); in proc_ns_get_link() 55 if (!task) in proc_ns_get_link() 67 put_task_struct(task); in proc_ns_get_link() 75 struct task_struct *task; in proc_ns_readlink() local 80 if (!task) in proc_ns_readlink() 88 put_task_struct(task); in proc_ns_readlink() 122 if (!task) in proc_ns_dir_readdir() 140 put_task_struct(task); in proc_ns_dir_readdir() 158 if (!task) in proc_ns_dir_lookup() [all …]
|
| A D | task_nommu.c | 203 priv->task = get_proc_task(priv->inode); in m_start() 204 if (!priv->task) in m_start() 209 put_task_struct(priv->task); in m_start() 210 priv->task = NULL; in m_start() 216 put_task_struct(priv->task); in m_start() 217 priv->task = NULL; in m_start() 231 if (!priv->task) in m_stop() 236 put_task_struct(priv->task); in m_stop() 237 priv->task = NULL; in m_stop()
|
| A D | proc_net.c | 270 struct task_struct *task; in get_proc_task_net() local 275 task = pid_task(proc_pid(dir), PIDTYPE_PID); in get_proc_task_net() 276 if (task != NULL) { in get_proc_task_net() 277 task_lock(task); in get_proc_task_net() 278 ns = task->nsproxy; in get_proc_task_net() 281 task_unlock(task); in get_proc_task_net()
|
| /fs/nfs/filelayout/ |
| A D | filelayout.c | 91 struct rpc_task *task = &hdr->task; in filelayout_reset_write() local 96 hdr->task.tk_pid, in filelayout_reset_write() 108 struct rpc_task *task = &hdr->task; in filelayout_reset_read() local 113 hdr->task.tk_pid, in filelayout_reset_read() 165 task->tk_status); in filelayout_async_handle_error() 187 task->tk_status); in filelayout_async_handle_error() 196 task->tk_status); in filelayout_async_handle_error() 279 rpc_exit(task, 0); in filelayout_read_prepare() 287 task)) in filelayout_read_prepare() 383 task)) in filelayout_write_prepare() [all …]
|
| /fs/nfs/flexfilelayout/ |
| A D | flexfilelayout.c | 1037 struct rpc_task *task = &hdr->task; in ff_layout_reset_write() local 1044 hdr->task.tk_pid, in ff_layout_reset_write() 1085 struct rpc_task *task = &hdr->task; in ff_layout_reset_read() local 1200 task->tk_status); in ff_layout_async_handle_error_v4() 1448 task->tk_start); in ff_layout_read_record_layoutstats_start() 1502 task)) in ff_layout_read_prepare_v4() 1641 task->tk_start); in ff_layout_write_record_layoutstats_start() 1690 task)) in ff_layout_write_prepare_v4() 1788 task)) in ff_layout_commit_prepare_v4() 2127 return ff_layout_match_rw(task, task->tk_calldata, data); in ff_layout_match_io() [all …]
|
| /fs/nfs/ |
| A D | unlink.c | 53 rpc_restart_call_prepare(task); in nfs_async_unlink_done() 103 struct rpc_task *task; in nfs_do_call_unlink() local 117 if (!IS_ERR(task)) in nfs_do_call_unlink() 118 rpc_put_task_async(task); in nfs_do_call_unlink() 280 data->complete(task, data); in nfs_async_rename_done() 361 task_setup_data.task = &data->task; in nfs_async_rename() 407 if (task->tk_status != 0) { in nfs_complete_sillyrename() 450 struct rpc_task *task; in nfs_sillyrename() local 498 if (IS_ERR(task)) { in nfs_sillyrename() 507 error = task->tk_status; in nfs_sillyrename() [all …]
|
| A D | nfs4proc.c | 4977 task); in nfs4_proc_unlink_rpc_prepare() 5020 task); in nfs4_proc_rename_rpc_prepare() 5687 task)) in nfs4_proc_pgio_rpc_prepare() 5827 task); in nfs4_proc_commit_rpc_prepare() 6866 task); in nfs4_delegreturn_prepare() 9302 task); in nfs4_get_lease_time_prepare() 9762 task); in nfs4_reclaim_complete_prepare() 10052 task); in nfs4_layoutreturn_prepare() 10250 task); in nfs4_layoutcommit_prepare() 10307 .task = &data->task, in nfs4_proc_layoutcommit() [all …]
|
| A D | nfs3proc.c | 51 if (task->tk_status != -EJUKEBOX) in nfs3_async_handle_jukebox() 54 task->tk_status = 0; in nfs3_async_handle_jukebox() 55 rpc_restart_call(task); in nfs3_async_handle_jukebox() 469 rpc_call_start(task); in nfs3_proc_unlink_rpc_prepare() 478 res = task->tk_msg.rpc_resp; in nfs3_proc_unlink_done() 493 rpc_call_start(task); in nfs3_proc_rename_rpc_prepare() 504 res = task->tk_msg.rpc_resp; in nfs3_proc_rename_done() 895 if (task->tk_status >= 0) { in nfs3_read_done() 916 rpc_call_start(task); in nfs3_proc_pgio_rpc_prepare() 929 if (task->tk_status >= 0) { in nfs3_write_done() [all …]
|
| A D | nfs42proc.c | 597 if (task->tk_status && in nfs42_offload_cancel_done() 620 struct rpc_task *task; in nfs42_do_offload_cancel_async() local 651 if (IS_ERR(task)) in nfs42_do_offload_cancel_async() 652 return PTR_ERR(task); in nfs42_do_offload_cancel_async() 656 rpc_put_task(task); in nfs42_do_offload_cancel_async() 930 rpc_exit(task, 0); in nfs42_layoutstat_prepare() 1052 if (IS_ERR(task)) in nfs42_proc_layoutstats_generic() 1054 rpc_put_task(task); in nfs42_proc_layoutstats_generic() 1098 rpc_exit(task, 0); in nfs42_layouterror_prepare() 1218 if (IS_ERR(task)) in nfs42_proc_layouterror() [all …]
|
| A D | read.c | 220 static int nfs_readpage_done(struct rpc_task *task, in nfs_readpage_done() argument 224 int status = NFS_PROTO(inode)->read_done(task, hdr); in nfs_readpage_done() 229 trace_nfs_readpage_done(task, hdr); in nfs_readpage_done() 231 if (task->tk_status == -ESTALE) { in nfs_readpage_done() 238 static void nfs_readpage_retry(struct rpc_task *task, in nfs_readpage_retry() argument 246 trace_nfs_readpage_short(task, hdr); in nfs_readpage_retry() 255 if (!task->tk_ops) { in nfs_readpage_retry() 267 rpc_restart_call_prepare(task); in nfs_readpage_retry() 270 static void nfs_readpage_result(struct rpc_task *task, in nfs_readpage_result() argument 283 nfs_readpage_retry(task, hdr); in nfs_readpage_result()
|
| A D | localio.c | 355 call_ops->rpc_call_done(&hdr->task, hdr); in nfs_local_hdr_release() 363 hdr->task.tk_ops = call_ops; in nfs_local_pgio_init() 364 if (!hdr->task.tk_start) in nfs_local_pgio_init() 365 hdr->task.tk_start = ktime_get(); in nfs_local_pgio_init() 374 hdr->task.tk_status = 0; in nfs_local_pgio_done() 377 hdr->task.tk_status = status; in nfs_local_pgio_done() 733 hdr->task.tk_status = status; in nfs_local_doio() 743 data->task.tk_ops = call_ops; in nfs_local_init_commit() 770 data->task.tk_status = 0; in nfs_local_commit_done() 774 data->task.tk_status = status; in nfs_local_commit_done() [all …]
|
| A D | proc.c | 342 static void nfs_proc_unlink_rpc_prepare(struct rpc_task *task, struct nfs_unlinkdata *data) in nfs_proc_unlink_rpc_prepare() argument 344 rpc_call_start(task); in nfs_proc_unlink_rpc_prepare() 347 static int nfs_proc_unlink_done(struct rpc_task *task, struct inode *dir) in nfs_proc_unlink_done() argument 363 rpc_call_start(task); in nfs_proc_rename_rpc_prepare() 367 nfs_proc_rename_done(struct rpc_task *task, struct inode *old_dir, in nfs_proc_rename_done() argument 602 static int nfs_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr) in nfs_read_done() argument 607 if (task->tk_status >= 0) { in nfs_read_done() 625 static int nfs_proc_pgio_rpc_prepare(struct rpc_task *task, in nfs_proc_pgio_rpc_prepare() argument 628 rpc_call_start(task); in nfs_proc_pgio_rpc_prepare() 632 static int nfs_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr) in nfs_write_done() argument [all …]
|
| A D | pagelist.c | 727 err = NFS_PROTO(hdr->inode)->pgio_rpc_prepare(task, hdr); in nfs_pgio_prepare() 729 rpc_exit(task, err); in nfs_pgio_prepare() 737 struct rpc_task *task; in nfs_initiate_pgio() local 745 .task = &hdr->task, in nfs_initiate_pgio() 769 task = rpc_run_task(&task_setup_data); in nfs_initiate_pgio() 770 if (IS_ERR(task)) in nfs_initiate_pgio() 771 return PTR_ERR(task); in nfs_initiate_pgio() 772 rpc_put_task(task); in nfs_initiate_pgio() 858 if (hdr->rw_ops->rw_done(task, hdr, inode) != 0) in nfs_pgio_result() 860 if (task->tk_status < 0) in nfs_pgio_result() [all …]
|
| /fs/lockd/ |
| A D | clntproc.c | 373 struct rpc_task *task; in nlm_do_async_call() local 376 if (IS_ERR(task)) in nlm_do_async_call() 377 return PTR_ERR(task); in nlm_do_async_call() 378 rpc_put_task(task); in nlm_do_async_call() 417 struct rpc_task *task; in nlmclnt_async_call() local 421 if (IS_ERR(task)) in nlmclnt_async_call() 422 return PTR_ERR(task); in nlmclnt_async_call() 424 rpc_put_task(task); in nlmclnt_async_call() 740 rpc_call_start(task); in nlmclnt_unlock_prepare() 772 rpc_restart_call(task); in nlmclnt_unlock_callback() [all …]
|
| /fs/ |
| A D | pidfs.c | 250 struct task_struct *task; in pidfd_poll() local 262 if (!task) in pidfd_poll() 264 else if (task->exit_state && !delay_group_leader(task)) in pidfd_poll() 343 if (!task) { in pidfd_info() 354 c = get_task_cred(task); in pidfd_info() 359 task_lock(task); in pidfd_info() 360 if (task->mm) in pidfd_info() 362 task_unlock(task); in pidfd_info() 384 cgrp = task_dfl_cgroup(task); in pidfd_info() 472 if (!task) in pidfd_ioctl() [all …]
|
| A D | proc_namespace.c | 245 if (!task) in mounts_open_common() 248 task_lock(task); in mounts_open_common() 249 nsp = task->nsproxy; in mounts_open_common() 251 task_unlock(task); in mounts_open_common() 252 put_task_struct(task); in mounts_open_common() 257 if (!task->fs) { in mounts_open_common() 258 task_unlock(task); in mounts_open_common() 259 put_task_struct(task); in mounts_open_common() 263 get_fs_root(task->fs, &root); in mounts_open_common() 264 task_unlock(task); in mounts_open_common() [all …]
|
| A D | nsfs.c | 65 struct task_struct *task; member 72 return args->ns_ops->get(args->task); in ns_get_path_task() 75 int ns_get_path(struct path *path, struct task_struct *task, in ns_get_path() argument 80 .task = task, in ns_get_path() 346 int ns_get_name(char *buf, size_t size, struct task_struct *task, in ns_get_name() argument 352 ns = ns_ops->get(task); in ns_get_name()
|
| /fs/nfsd/ |
| A D | nfs4callback.c | 1099 task->tk_status = 0; in nfsd4_requeue_cb() 1234 if (task->tk_status) in nfsd4_cb_probe_done() 1463 rpc_call_start(task); in nfsd4_cb_prepare() 1511 if (RPC_SIGNALLED(task) || !rpc_restart_call(task)) in nfsd4_cb_sequence_done() 1513 rpc_delay(task, 2 * HZ); in nfsd4_cb_sequence_done() 1537 if (!RPC_SIGNALLED(task)) { in nfsd4_cb_sequence_done() 1543 nfsd4_requeue_cb(task, cb); in nfsd4_cb_sequence_done() 1564 if (RPC_SIGNALLED(task)) in nfsd4_cb_done() 1571 WARN_ONCE(task->tk_status, in nfsd4_cb_done() 1579 task->tk_status = 0; in nfsd4_cb_done() [all …]
|
| /fs/bcachefs/ |
| A D | six.c | 118 struct task_struct *task, bool try) in __do_six_trylock() argument 123 EBUG_ON(type == SIX_LOCK_write && lock->owner != task); in __do_six_trylock() 204 six_set_owner(lock, type, old, task); in __do_six_trylock() 215 struct task_struct *task; in __six_lock_wakeup() local 231 ret = __do_six_trylock(lock, lock_type, w->task, false); in __six_lock_wakeup() 240 task = get_task_struct(w->task); in __six_lock_wakeup() 250 wake_up_process(task); in __six_lock_wakeup() 251 put_task_struct(task); in __six_lock_wakeup() 423 wait->task = current; in six_lock_slowpath() 774 wake_up_process(w->task); in six_lock_wakeup_all()
|
| A D | thread_with_file.c | 16 if (thr->task) { in bch2_thread_with_file_exit() 17 kthread_stop(thr->task); in bch2_thread_with_file_exit() 18 put_task_struct(thr->task); in bch2_thread_with_file_exit() 41 thr->task = kthread_create(fn, thr, "%s", name); in bch2_run_thread_with_file() 42 ret = PTR_ERR_OR_ZERO(thr->task); in bch2_run_thread_with_file() 56 get_task_struct(thr->task); in bch2_run_thread_with_file() 57 wake_up_process(thr->task); in bch2_run_thread_with_file() 63 if (thr->task) in bch2_run_thread_with_file() 64 kthread_stop(thr->task); in bch2_run_thread_with_file()
|
| /fs/xfs/ |
| A D | xfs_zone_space_resv.c | 32 struct task_struct *task; member 77 wake_up_process(reservation->task); in xfs_zoned_resv_wake_all() 100 wake_up_process(reservation->task); in xfs_zoned_add_available() 126 .task = current, in xfs_zoned_reserve_available()
|
| /fs/nfs/blocklayout/ |
| A D | blocklayout.c | 211 struct rpc_task *task; in bl_read_cleanup() local 214 task = container_of(work, struct rpc_task, u.tk_work); in bl_read_cleanup() 215 hdr = container_of(task, struct nfs_pgio_header, task); in bl_read_cleanup() 224 hdr->task.tk_status = hdr->pnfs_error; in bl_end_par_io_read() 225 INIT_WORK(&hdr->task.u.tk_work, bl_read_cleanup); in bl_end_par_io_read() 226 schedule_work(&hdr->task.u.tk_work); in bl_end_par_io_read() 343 struct rpc_task *task = container_of(work, struct rpc_task, u.tk_work); in bl_write_cleanup() local 345 container_of(task, struct nfs_pgio_header, task); in bl_write_cleanup() 368 hdr->task.tk_status = hdr->pnfs_error; in bl_end_par_io_write() 370 INIT_WORK(&hdr->task.u.tk_work, bl_write_cleanup); in bl_end_par_io_write() [all …]
|