diff options
| author | David S. Miller <davem@davemloft.net> | 2010-04-03 18:49:14 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-04-03 18:49:14 -0400 |
| commit | 87e8b821ed8db3dab03d96cd542e29666bf210aa (patch) | |
| tree | 0027060473aafbbb125655ba027319c8a1a665fc /fs/proc/array.c | |
| parent | 33cd9dfa3a13e3d8e41aef225a9f98169816723b (diff) | |
| parent | 5e11611a5d22252f3f9c169a3c9377eac0c32033 (diff) | |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 18e20feee251..aa8637b81028 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
| @@ -273,7 +273,7 @@ static inline void task_sig(struct seq_file *m, struct task_struct *p) | |||
| 273 | rcu_read_lock(); /* FIXME: is this correct? */ | 273 | rcu_read_lock(); /* FIXME: is this correct? */ |
| 274 | qsize = atomic_read(&__task_cred(p)->user->sigpending); | 274 | qsize = atomic_read(&__task_cred(p)->user->sigpending); |
| 275 | rcu_read_unlock(); | 275 | rcu_read_unlock(); |
| 276 | qlim = p->signal->rlim[RLIMIT_SIGPENDING].rlim_cur; | 276 | qlim = task_rlimit(p, RLIMIT_SIGPENDING); |
| 277 | unlock_task_sighand(p, &flags); | 277 | unlock_task_sighand(p, &flags); |
| 278 | } | 278 | } |
| 279 | 279 | ||
| @@ -420,7 +420,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, | |||
| 420 | cutime = sig->cutime; | 420 | cutime = sig->cutime; |
| 421 | cstime = sig->cstime; | 421 | cstime = sig->cstime; |
| 422 | cgtime = sig->cgtime; | 422 | cgtime = sig->cgtime; |
| 423 | rsslim = sig->rlim[RLIMIT_RSS].rlim_cur; | 423 | rsslim = ACCESS_ONCE(sig->rlim[RLIMIT_RSS].rlim_cur); |
| 424 | 424 | ||
| 425 | /* add up live thread stats at the group level */ | 425 | /* add up live thread stats at the group level */ |
| 426 | if (whole) { | 426 | if (whole) { |
