login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
28
Re: [PATCH] Fix hibernate/resume in presence of PREEMPT_RCU and hotplug
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Paul E. McKenney
Subject:
Re: [PATCH] Fix hibernate/resume in presence of PREEMPT_RCU and hotplug
Date: Thursday, February 28, 2008 - 12:43 pm
On Thu, Feb 28, 2008 at 10:35:08AM +0530, Gautham R Shenoy wrote:
quoted text
> On Wed, Feb 27, 2008 at 04:21:10PM -0800, Paul E. McKenney wrote: > > Hello! > > > > This fixes a oops encountered when doing hibernate/resume in presence > > of PREEMPT_RCU. The problem was that the code failed to disable preemption > > when accessing a per-CPU variable. This is OK when called from code > > that already has preemption disabled, but such is not the case from > > the suspend/resume code path. > > Well, rcu_offline_cpu() is called from the cpu-offline callback path, and > AFAICS, it doesn't disable preemption. > > I wonder how we're seeing this only now! Indeed a good catch!
I wonder as well. In fact there is (at least) one other such bug, submitting patch separately. :-/ Thanx, Paul
quoted text
> Reviewed-by: Gautham R Shenoy <ego@in.ibm.com> > > > > > Reported-by: Dave Young <hidave.darkstar@gmail.com> > > Tested-by: Dave Young <hidave.darkstar@gmail.com> > > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > > --- > > > > rcupreempt.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff -urpNa -X dontdiff linux-2.6.25-rc3/kernel/rcupreempt.c linux-2.6.25-rc3-rcuoffline/kernel/rcupreempt.c > > --- linux-2.6.25-rc3/kernel/rcupreempt.c 2008-02-26 16:58:43.000000000 -0800 > > +++ linux-2.6.25-rc3-rcuoffline/kernel/rcupreempt.c 2008-02-26 17:04:17.000000000 -0800 > > @@ -702,8 +702,9 @@ void rcu_offline_cpu(int cpu) > > * fix. > > */ > > > > + local_irq_save(flags); > > rdp = RCU_DATA_ME(); > > - spin_lock_irqsave(&rdp->lock, flags); > > + spin_lock(&rdp->lock); > > *rdp->nexttail = list; > > if (list) > > rdp->nexttail = tail; > > -- > Thanks and Regards > gautham
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Fix hibernate/resume in presence of PREEMPT_RCU an ...
, Paul E. McKenney
, (Wed Feb 27, 5:21 pm)
Re: [PATCH] Fix hibernate/resume in presence of PREEMPT_RC ...
, Gautham R Shenoy
, (Wed Feb 27, 10:05 pm)
Re: [PATCH] Fix hibernate/resume in presence of PREEMPT_RC ...
, Paul E. McKenney
, (Thu Feb 28, 12:43 pm)
[PATCH] Remove never-migrates assumption from rcu_process_ ...
, Paul E. McKenney
, (Thu Feb 28, 12:51 pm)
Re: [PATCH] Remove never-migrates assumption from rcu_proc ...
, Ingo Molnar
, (Thu Feb 28, 12:53 pm)
Re: [PATCH] Remove never-migrates assumption from rcu_proc ...
, Ingo Molnar
, (Thu Feb 28, 12:54 pm)
Re: [PATCH] Remove never-migrates assumption from rcu_proc ...
, Paul E. McKenney
, (Thu Feb 28, 4:10 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tony Luck
Re: Hardware Error Kernel Mini-Summit
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
Andrey Borzenkov
Re: [possible regression] 2.6.22 reiserfs/libata sporadically hangs on resume from...
Linus Torvalds
Linux 2.6.26-rc6
Jeffrey V. Merkey
Re: Versioning file system
git
:
Morten Welinder
Re: [PATCH] use xrealloc in help.c
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Jörg Sommer
[PATCH v2 08/13] Unify the lenght of $SHORT* and the commits in the TODO list
Boyd Lynn Gerber
Re: [VOTE] git versus mercurial
Stefan Näwe
Re: [PATCH] git-gui: use --exclude-standard to check for untracked files
linux-netdev
:
Andreas Sundstrom
Re: ~60k interrupts/sec for 1Gb/s iperf with r8169
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Denys Fedoryshchenko
Re: circular locking, mirred, 2.6.24.2
David Miller
Re: [PATCH -next] sfc: Use correct macro to set event bitfield
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
m68k: amiga - Mouse platform device conversion
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
frantisek holop
Re: mount ffs as msdos, system hangs
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate