Re: [PATCH -rt] [resend as inlined patch]{queue,schedule}_work_prio() allowing work priorities other than caller'spriority

From: Daniel Walker
Date: Fri Jul 04 2008 - 13:41:35 EST



On Fri, 2008-07-04 at 15:35 +0200, Leon Woestenberg wrote:

> Index: linux-2.6.24/kernel/workqueue.c
> ===================================================================
> --- linux-2.6.24.orig/kernel/workqueue.c 2008-06-30
> 17:12:05.000000000 +0200
> +++ linux-2.6.24/kernel/workqueue.c 2008-06-30 17:25:03.000000000 +0200
> @@ -163,9 +163,10 @@
> }
>
> /**
> - * queue_work - queue work on a workqueue
> + * queue_work_prio - queue work on a workqueue and set work priority
> * @wq: workqueue to use
> * @work: work to queue
> + * @prio: priority of work
> *
> * Returns 0 if @work was already on a queue, non-zero otherwise.
> *
> @@ -174,17 +175,36 @@
> *
> * Especially no such guarantee on PREEMPT_RT.
> */
> -int fastcall queue_work(struct workqueue_struct *wq, struct work_struct
> *work)
> +int fastcall queue_work_prio(struct workqueue_struct *wq,
> + struct work_struct *work, int prio)

Looks like you patch has line wrapped damage, and white space damage..
If your cutting an pasting the patches that will usually remove the
white space (which we don't want), and often mailers will line wrap if
you don't specify that it's formatted already.

Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/