On Tue, 2012-08-07 at 02:45 +0200, Sasha Levin wrote:
> From: Sasha Levin <sasha.le...@oracle.com>
> 
> Switch workqueues to use the new hashtable implementation. This reduces the 
> amount of
> generic unrelated code in the workqueues.

Just style trivia:

> diff --git a/kernel/workqueue.c b/kernel/workqueue.c
[]
> @@ -897,8 +839,15 @@ static struct worker 
> *__find_worker_executing_work(struct global_cwq *gcwq,
>  static struct worker *find_worker_executing_work(struct global_cwq *gcwq,
>                                                struct work_struct *work)
>  {
> -     return __find_worker_executing_work(gcwq, busy_worker_head(gcwq, work),
> -                                         work);
> +     struct worker *worker;
> +     struct hlist_node *tmp;
> +
> +     hash_for_each_possible(gcwq->busy_hash, worker, BUSY_WORKER_HASH_ORDER,
> +                                                             tmp, hentry, 
> work)
> +             if (worker->current_work == work)
> +                     return worker;

braces please:

        hash_for_each_possible(gcwq->busy_hash, worker, BUSY_WORKER_HASH_ORDER,
                               tmp, hentry, work) {
                if (worker->current_work == work)
                        return worker;
        }

[]

@@ -1916,7 +1865,7 @@ static void cwq_dec_nr_in_flight(struct 
cpu_workqueue_struct *cwq, int color,
>   * @worker: self
>   * @work: work to process
>   *
> - * Process @work.  This function contains all the logics necessary to
> + * Process @work.  This? function contains all the logics necessary to

Odd ? and the grammar also seems odd.

>   * process a single work including synchronization against and
>   * interaction with other workers on the same cpu, queueing and
>   * flushing.  As long as context requirement is met, any worker can


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

Reply via email to