login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
April
»
16
Re: [PATCH] slow_work_execute() needs mb() before test_bit(SLOW_WORK_PENDING)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Oleg Nesterov
Subject:
Re: [PATCH] slow_work_execute() needs mb() before test_bit(SLOW_WORK_PENDING)
Date: Thursday, April 16, 2009 - 7:15 am
On 04/16, David Howells wrote:
quoted text
> > Oleg Nesterov <oleg@redhat.com> wrote: > > > But why do we need the barrier before clear_bit(SLOW_WORK_EXECUTING) ? > > We do have one after test_and_clear_bit(SLOW_WORK_PENDING) above, and it > > should be enough, no? > > No. There lock is covering work->ops->execute(work) too, and that is after > the clearance of SLOW_WORK_PENDING. The UNLOCK-class barrier must go between > execution and clearance of the execution lock bit.
Ah. Now I see. It is still not clear to me whether we need a barrier after clear_bit_unlock. Thanks David! Oleg. --
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] slow_work_execute() needs mb() before test_bit(SLO ...
, Oleg Nesterov
, (Mon Apr 13, 1:13 pm)
Re: [PATCH] slow_work_execute() needs mb() before test_bit ...
, Oleg Nesterov
, (Mon Apr 13, 1:13 pm)
Re: [PATCH] slow_work_execute() needs mb() before test_bit ...
, David Howells
, (Mon Apr 13, 2:47 pm)
Re: [PATCH] slow_work_execute() needs mb() before test_bit ...
, Oleg Nesterov
, (Mon Apr 13, 3:02 pm)
Re: [PATCH] slow_work_execute() needs mb() before test_bit ...
, David Howells
, (Thu Apr 16, 2:43 am)
Re: [PATCH] slow_work_execute() needs mb() before test_bit ...
, Oleg Nesterov
, (Thu Apr 16, 7:15 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing L