login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
May
»
13
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ming Lei
Subject:
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
Date: Tuesday, May 12, 2009 - 5:16 pm
2009/5/13 Frederic Weisbecker <fweisbec@gmail.com>:
quoted text
> On Tue, May 12, 2009 at 05:44:58PM +0200, Frederic Weisbecker wrote:
quoted text
> Note that async_schedule_atomic is a confusing name. > At a first glance, it could mean that the scheduled job > will be run atomically. > > I would suggest async_schedule_inatomic() so that it follows the common > naming pattern in use in the kernel, eg: > > - copy_from_user_inatomic() > - futex_atomic_cmpxchg_inatomic() > > and so on.
Agree, I'll fix it in next version.
quoted text
> > > >> > * Returns an async_cookie_t that may be used for checkpointing later. >> > - * Note: This function may be called from atomic or non-atomic contexts. >> > + * Note:This function may be called from non-atomic contexts,and not >> > + * called from atomic contexts with safety. Please use >> > + * async_schedule_atomic in atomic contexts. > > > I suggest to add a comment which explains the reason for which it is unsafe > to call it in atomic context: because the scheduled work might be synchronously > executed. > > One could believe this is because async_schedule() internally uses > a function which might sleep whereas the actual problem may come > from the scheduled function.
Agree,add it in next version.
quoted text
> > BTW, now that we have an atomic safe version, may be we could > also adapt the kmalloc GFP flags subsequently?
-- Lei Ming --
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] kernel/async.c:introduce async_schedule*_atomic
, tom.leiming
, (Tue May 12, 8:13 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Frederic Weisbecker
, (Tue May 12, 8:44 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, =?utf-8?Q?Am=C3=A9ri ...
, (Tue May 12, 8:58 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Frederic Weisbecker
, (Tue May 12, 9:04 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Cornelia Huck
, (Tue May 12, 9:31 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Frederic Weisbecker
, (Tue May 12, 9:52 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Cornelia Huck
, (Tue May 12, 10:18 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Ming Lei
, (Tue May 12, 5:16 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Ming Lei
, (Tue May 12, 5:28 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Ming Lei
, (Tue May 12, 5:36 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Frederic Weisbecker
, (Tue May 12, 6:20 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Ming Lei
, (Tue May 12, 8:27 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Cornelia Huck
, (Wed May 13, 12:47 am)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Arjan van de Ven
, (Sun May 17, 1:26 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Arjan van de Ven
, (Sun May 17, 1:59 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Ming Lei
, (Sun May 17, 6:55 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Arjan van de Ven
, (Sun May 17, 9:18 pm)
Re: [PATCH] kernel/async.c:introduce async_schedule*_atomic
, Cornelia Huck
, (Mon May 18, 4:29 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 List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom