linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging/lustre: use rcu_dereference to access rcu protected current->real_parent field
@ 2014-08-06 18:22 Evgeny Budilovsky
  2014-08-06 21:42 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 14+ messages in thread
From: Evgeny Budilovsky @ 2014-08-06 18:22 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Andreas Dilger, Oleg Drokin, Peng Tao,
	Lai Siyao, devel, linux-kernel



Signed-off-by: Evgeny Budilovsky <budevg@gmail.com>
---
 drivers/staging/lustre/lustre/llite/lproc_llite.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/llite/lproc_llite.c b/drivers/staging/lustre/lustre/llite/lproc_llite.c
index 77f68b5..7e61468 100644
--- a/drivers/staging/lustre/lustre/llite/lproc_llite.c
+++ b/drivers/staging/lustre/lustre/llite/lproc_llite.c
@@ -910,7 +910,8 @@ void ll_stats_ops_tally(struct ll_sb_info *sbi, int op, int count)
 		 sbi->ll_stats_track_id == current->pid)
 		lprocfs_counter_add(sbi->ll_stats, op, count);
 	else if (sbi->ll_stats_track_type == STATS_TRACK_PPID &&
-		 sbi->ll_stats_track_id == current->real_parent->pid)
+		 sbi->ll_stats_track_id ==
+			rcu_dereference(current->real_parent)->pid)
 		lprocfs_counter_add(sbi->ll_stats, op, count);
 	else if (sbi->ll_stats_track_type == STATS_TRACK_GID &&
 		 sbi->ll_stats_track_id ==
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-08-12  2:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 18:22 [PATCH] staging/lustre: use rcu_dereference to access rcu protected current->real_parent field Evgeny Budilovsky
2014-08-06 21:42 ` Greg Kroah-Hartman
2014-08-07 11:13   ` Evgeny Budilovsky
2014-08-08  3:49     ` Greg Kroah-Hartman
2014-08-08  4:03       ` Oleg Drokin
2014-08-08  4:42         ` Greg Kroah-Hartman
2014-08-08  5:06           ` Oleg Drokin
2014-08-08  5:32             ` Greg Kroah-Hartman
2014-08-09 11:05               ` Peng Tao
2014-08-09 14:04                 ` Greg Kroah-Hartman
2014-08-09 14:34                   ` Oleg Drokin
2014-08-09 15:47                     ` Greg Kroah-Hartman
2014-08-12  1:44                       ` Oleg Drokin
2014-08-12  2:39                         ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).