Re: [PATCH 2/8] Add interface for queuing work on a specific CPU

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Monday, February 11, 2008 - 3:51 am

Sorry for delay,

On 02/07, Andrew Morton wrote:

This is possible, but in that case queue_work_on_cpu() should use wq_per_cpu(),
not per_cpu_ptr(). (otherwise queue_work(single_threaded_wq) won't work).


A bit off-topic, the comment near queue_work() says

	* We queue the work to the CPU it was submitted, but there is no
	* guarantee that it will be processed by that CPU.

This is wrong. Unless cpu_down() happens, we do guarantee it will be processed
by that CPU. Perhaps it makes sense to fix the comment as well?

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/8] IO queuing and complete affinity, Jens Axboe, (Thu Feb 7, 2:18 am)
[patch] block layer: kmemcheck fixes, Ingo Molnar, (Thu Feb 7, 3:49 am)
Re: [PATCH 0/8] IO queuing and complete affinity, Alan D. Brunelle, (Thu Feb 7, 8:16 am)
Re: [patch] block layer: kmemcheck fixes, Linus Torvalds, (Thu Feb 7, 10:42 am)
Re: [patch] block layer: kmemcheck fixes, Jens Axboe, (Thu Feb 7, 10:55 am)
Re: [patch] block layer: kmemcheck fixes, Ingo Molnar, (Thu Feb 7, 12:31 pm)
Re: [patch] block layer: kmemcheck fixes, Jens Axboe, (Thu Feb 7, 1:06 pm)
Re: [patch] block layer: kmemcheck fixes, David Miller, (Thu Feb 7, 6:22 pm)
Re: [patch] block layer: kmemcheck fixes, Linus Torvalds, (Thu Feb 7, 6:28 pm)
Re: [patch] block layer: kmemcheck fixes, Jens Axboe, (Fri Feb 8, 4:38 am)
Re: [patch] block layer: kmemcheck fixes, Arjan van de Ven, (Fri Feb 8, 8:09 am)
Re: [patch] block layer: kmemcheck fixes, Nick Piggin, (Fri Feb 8, 3:44 pm)
Re: [patch] block layer: kmemcheck fixes, Arjan van de Ven, (Fri Feb 8, 3:56 pm)
Re: [patch] block layer: kmemcheck fixes, Nick Piggin, (Fri Feb 8, 4:58 pm)
Re: [PATCH 2/8] Add interface for queuing work on a specif ..., Oleg Nesterov, (Mon Feb 11, 3:51 am)