login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
1
Re: [PATCH repost] sched: export sched_set/getaffinity to modules
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Michael S. Tsirkin
Subject:
Re: [PATCH repost] sched: export sched_set/getaffinity to modules
Date: Sunday, August 1, 2010 - 1:50 am
On Fri, Jul 30, 2010 at 04:19:01PM +0200, Oleg Nesterov wrote:
quoted text
> Sorry for the delay, I can't be responsive these days... > > On 07/27, Michael S. Tsirkin wrote: > > > > On Mon, Jul 26, 2010 at 08:08:34PM +0200, Oleg Nesterov wrote: > > > On 07/26, Sridhar Samudrala wrote: > > > > > > > > I have been testing out a similar patch that uses kernel_thread() without CLONE_FILES > > > > flag rather than create_kthread() and then closing the files. > > > > > > !CLONE_FILES can't help. copy_files() does dup_fd() in this case. > > > The child still inherits the files. > > > > > > > Either version should be fine. > > > > > > I think neither version is fine ;) > > > > > > exit_files() is not enough too. How about the signals, reparenting? > > > > > > > > > I already forgot all details, probably I missed somethig. But it > > > seems to me that it is better to just export get/set affinity and > > > forget about all complications. > > > > > > Oleg. > > > > Oleg, so can I attach your Ack to the patch in question, and merge > > it all through net-next? > > Well, I do not think you need my ack ;) > > > But I must admit, I personally dislike this idea. A kernel thread which > is the child of the user-space process, and in fact it is not the "real" > kernel thread. I think this is against the common case. If you do not > care the signals/reparenting, why can't you fork the user-space process > which does all the work via ioctl's ? OK, I do not understand the problem > domain, probably this can't work. > > Anyway, the patch looks buggy to me. Starting from > > create_kthread(&create); > wait_for_completion(&create.done); > > At least you should check create_kthread() suceeds, otherwise > wait_for_completion() will hang forever. OTOH, if it suceeds then > wait_for_completion() is not needed. But this is minor. > > create_kthread()->kernel_thread() uses CLONE_VM, this means that the > child will share ->mm. And this means that if the parent recieves > the coredumping signal it will hang forever in kernel space waiting > until this child exits. > > This is just the immediate surprise I can see with this approach, > I am afraid there is something else. > > And once again. We are doing this hacks only because we lack a > couples of exports (iiuk). This is, well, a bit strange ;) > > Oleg.
Oleg, I mean Ack the exporting of get/set affinity. Thanks! -- MST --
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 2/3] workqueue: Add an API to create a singlethread ...
, Sridhar Samudrala
, (Tue May 18, 5:04 pm)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 2:14 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Oleg Nesterov
, (Thu May 27, 5:44 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 6:12 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Thu May 27, 9:15 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Sridhar Samudrala
, (Thu May 27, 9:24 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 9:41 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Thu May 27, 9:56 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Oleg Nesterov
, (Thu May 27, 10:30 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 10:32 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Thu May 27, 2:20 pm)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Fri May 28, 8:08 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Fri May 28, 8:54 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Sun May 30, 4:29 am)
[PATCH 3/3] vhost: apply cpumask and cgroup to vhost pollers
, Tejun Heo
, (Sun May 30, 1:25 pm)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost p ...
, Li Zefan
, (Sun May 30, 6:11 pm)
[PATCH UPDATED 3/3] vhost: apply cpumask and cgroup to vho ...
, Tejun Heo
, (Sun May 30, 11:58 pm)
Re: [PATCH 2/3] cgroups: Add an API to attach a task to cu ...
, Tejun Heo
, (Mon May 31, 12:00 am)
Re: [PATCH UPDATED 3/3] vhost: apply cpumask and cgroup to ...
, Li Zefan
, (Mon May 31, 12:48 am)
Re: [PATCH UPDATED2 3/3] vhost: apply cpumask and cgroup t ...
, Tejun Heo
, (Mon May 31, 3:20 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Oleg Nesterov
, (Mon May 31, 7:39 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Tejun Heo
, (Mon May 31, 8:07 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Michael S. Tsirkin
, (Mon May 31, 8:22 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Oleg Nesterov
, (Mon May 31, 8:31 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Tejun Heo
, (Mon May 31, 8:38 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Tejun Heo
, (Mon May 31, 8:45 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Michael S. Tsirkin
, (Mon May 31, 9:00 am)
[PATCH 3/3] vhost: apply cpumask and cgroup to vhost workers
, Tejun Heo
, (Tue Jun 1, 2:35 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Michael S. Tsirkin
, (Tue Jun 1, 3:17 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Tejun Heo
, (Tue Jun 1, 3:56 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Paul E. McKenney
, (Tue Jun 1, 7:13 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Sridhar Samudrala
, (Tue Jun 1, 10:19 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Tejun Heo
, (Tue Jun 1, 4:59 pm)
[PATCH UPDATED 1/3] vhost: replace vhost_workqueue with pe ...
, Tejun Heo
, (Wed Jun 2, 11:40 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Sridhar Samudrala
, (Wed Jun 2, 2:34 pm)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost p ...
, Michael S. Tsirkin
, (Thu Jun 24, 1:11 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost p ...
, Sridhar Samudrala
, (Thu Jun 24, 3:45 pm)
[PATCH] sched: export sched_set/getaffinity (was Re: [PATC ...
, Michael S. Tsirkin
, (Fri Jun 25, 3:10 am)
[PATCH repost] sched: export sched_set/getaffinity to modules
, Michael S. Tsirkin
, (Thu Jul 1, 4:07 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 4:19 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 4:43 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 4:55 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 5:23 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 5:32 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 5:34 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 5:46 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 5:50 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 6:07 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 6:08 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 6:22 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 6:57 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Tejun Heo
, (Thu Jul 1, 7:27 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Thu Jul 1, 7:33 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Thu Jul 1, 7:46 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 7:55 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Fri Jul 2, 11:01 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Fri Jul 2, 11:11 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Fri Jul 2, 2:06 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Sun Jul 4, 2:00 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Mon Jul 12, 11:59 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Tue Jul 13, 4:09 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Wed Jul 14, 4:26 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Wed Jul 14, 5:05 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Thu Jul 22, 8:58 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Thu Jul 22, 2:21 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Sat Jul 24, 12:14 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Sun Jul 25, 12:41 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Sun Jul 25, 3:04 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 8:25 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 8:34 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 8:46 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 8:50 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 8:51 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 9:05 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 9:14 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:23 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:31 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:51 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:57 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 10:12 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Mon Jul 26, 10:51 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Mon Jul 26, 11:08 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 11:51 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 12:04 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 12:14 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 12:31 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 12:55 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 12:57 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 12:59 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 1:19 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 1:27 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:55 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Tue Jul 27, 1:18 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Tue Jul 27, 1:21 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Tue Jul 27, 8:41 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Tue Jul 27, 12:19 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Wed Jul 28, 12:48 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Wed Jul 28, 3:48 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Wed Jul 28, 5:00 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Fri Jul 30, 7:19 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Tejun Heo
, (Fri Jul 30, 7:31 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Sun Aug 1, 1:50 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Mon Aug 2, 8:02 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Wed Aug 4, 3:45 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Nick Piggin
Re: dealing with barriers (was Re: [PATCH] firewire: fw-core: enforce write order ...
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Linux Kernel Mailing List
bnx2x: Moving includes
Colocation donated by:
Syndicate