The patch titled schedule_work() documentation improvements has been added to the -mm tree. Its filename is schedule_work-documentation-improvements.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: schedule_work() documentation improvements From: Bart Van Assche <bart.vanassche@xxxxxxxxx> Two important aspects of the schedule_work() function are not yet documented: - that it is allowed to pass a struct work_struct * to this function that is already on the kernel-global workqueue; - the meaning of its return value. The patch below documents both aspects. Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/workqueue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN kernel/workqueue.c~schedule_work-documentation-improvements kernel/workqueue.c --- a/kernel/workqueue.c~schedule_work-documentation-improvements +++ a/kernel/workqueue.c @@ -600,7 +600,11 @@ static struct workqueue_struct *keventd_ * schedule_work - put work task in global workqueue * @work: job to be done * - * This puts a job in the kernel-global workqueue. + * Returns zero if @work was already on the kernel-global workqueue and + * non-zero otherwise. + * + * This puts a job in the kernel-global workqueue if it was not already queued + * and leaves it in the same position on the kernel-global workqueue otherwise. */ int schedule_work(struct work_struct *work) { _ Patches currently in -mm which might be from bart.vanassche@xxxxxxxxx are readahead-add-blk_run_backing_dev.patch schedule_work-documentation-improvements.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html