login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
15
Re: [PATCH RFC] workqueue: remove in_workqueue_context()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Tejun Heo
Subject:
Re: [PATCH RFC] workqueue: remove in_workqueue_context()
Date: Friday, October 15, 2010 - 7:48 am
On 09/23/2010 07:10 PM, Paul E. McKenney wrote:
quoted text
> On Thu, Sep 23, 2010 at 02:35:07PM +0200, Tejun Heo wrote: >> Commit a25909a4 (lockdep: Add an in_workqueue_context() lockdep-based >> test function) added in_workqueue_context() but there hasn't been any >> in-kernel user and the lockdep annotation in workqueue is scheduled to >> change. Remove the unused function. >> >> Signed-off-by: Tejun Heo <tj@kernel.org> >> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> >> --- >> Paul, I was looking through lockdep annotations to see how they can be >> improved and noticed that in_workqueue_context() isn't used by anyone >> and it seems like there hasn't been any in-kernel user either. Can >> this be removed or do you expect to use it somewhere? > > I added it for the drivers/vhost changes. They were using a > variant of RCU where executing in workqueue context acted as an RCU > read-side critical section and where flushing workqueues acted as > an RCU grace period. The in_workqueue_context() was then passed to > rcu_dereference_check() to verify correct usage. > > But you are right, I don't see it being used any more, though I do still > see the big block comment documenting this in drivers/vhost/vhost.h. > > Michael, what are Tejun and I missing here?
Ping. Shall I go forward with this patch? Thanks. -- tejun --
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 RFC] workqueue: remove in_workqueue_context()
, Tejun Heo
, (Thu Sep 23, 5:35 am)
Re: [PATCH RFC] workqueue: remove in_workqueue_context()
, Paul E. McKenney
, (Thu Sep 23, 10:10 am)
Re: [PATCH RFC] workqueue: remove in_workqueue_context()
, Tejun Heo
, (Fri Oct 15, 7:48 am)
Re: [PATCH RFC] workqueue: remove in_workqueue_context()
, Tejun Heo
, (Tue Oct 19, 2:27 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Linus Torvalds
Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmas of a mergeab...
Matthew Wilcox
Re: Pull request for semaphore include changes
Benjamin Herrenschmidt
Re: [RFC PATCH 03/11] ppc: Create ops to choose between direct window and iommu ba...
git
:
Junio C Hamano
Re: pack operation is thrashing my server
Tay Ray Chuan
Re: [PATCH 02/18] http-push, http-walker: style fixes
Chris Frey
whitespace checking in git-add?
Luben Tuikov
Re: New way of tracking remote branches -- question
Kirill Smelkov
[TopGit PATCH] tg help: <something>: improve readability
git-commits-head
:
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
rtl8187: use DMA-aware buffers with usb_control_msg
Linux Kernel Mailing List
[ARM] pxa/em-x270: explicitly set .gpio_cs in TDO35S SPI chip data
Linux Kernel Mailing List
epoll: clean up ep_modify
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
Valentine Barshak
[PATCH 1/2] ibm_newemac: PowerPC 440GX EMAC PHY clock workaround
Hannes Eder
[PATCH 06/27] drivers/net/atlx: fix sparse warnings: make symbols static
Gerrit Renker
Re: [PATCH 16/37] dccp: API to query the current TX/RX CCID
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
Kamigishi Rei
Re: HEAD newfs/sysinstall issues
Julian Elischer
Re: reproducible panic in netisr
Bruce Cran
sctp panic in _mtx_lock_sleep when attempting to connect to a remote machine
韓家標 Bill Hacker
Re: ZFS honesty
Colocation donated by:
Syndicate