[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <87k36ltoob.fsf@gmail.com>
Date: Wed, 6 Aug 2014 21:22:43 +0300
From: Evgeny Budilovsky <budevg@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Andreas Dilger <andreas.dilger@...el.com>,
Oleg Drokin <green@...uxhacker.ru>,
Peng Tao <bergwolf@...il.com>, Lai Siyao <lai.siyao@...el.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] staging/lustre: use rcu_dereference to access rcu protected current->real_parent field
Signed-off-by: Evgeny Budilovsky <budevg@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists