direct-io.hg
view patches/linux-2.6.11/rcu-nohz.patch @ 5617:22d7dda0e38d
bitkeeper revision 1.1782 (42c3a8e76Lioy1FVEJFTaTkbYVBy7Q)
[PATCH] Use copy_from_user when accessing guest_pt[]
Use copy_from_user when accessing guest_pt[]
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
[PATCH] Use copy_from_user when accessing guest_pt[]
Use copy_from_user when accessing guest_pt[]
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author | arun.sharma@intel.com[kaf24] |
---|---|
date | Thu Jun 30 08:10:15 2005 +0000 (2005-06-30) |
parents | da85abbfc7c0 |
children | 56a63f9f378f |
line source
1 diff -ur linux-2.6.11/kernel/rcupdate.c linux-2.6.11-rcu/kernel/rcupdate.c
2 --- linux-2.6.11/kernel/rcupdate.c 2005-05-30 10:51:41 +01:00
3 +++ linux-2.6.11-rcu/kernel/rcupdate.c 2005-05-30 10:53:53 +01:00
4 @@ -202,8 +202,11 @@
5 */
6 static void cpu_quiet(int cpu, struct rcu_ctrlblk *rcp, struct rcu_state *rsp)
7 {
8 + cpumask_t mask;
9 +
10 cpu_clear(cpu, rsp->cpumask);
11 - if (cpus_empty(rsp->cpumask)) {
12 + cpus_andnot(mask, rsp->cpumask, nohz_cpu_mask);
13 + if (cpus_empty(mask)) {
14 /* batch completed ! */
15 rcp->completed = rcp->cur;
16 rcu_start_batch(rcp, rsp, 0);