Re: [PATCH v2.6.36-rc7] infiniband: update workqueue usage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bart Van Assche
Date: Wednesday, October 20, 2010 - 3:21 am

On Wed, Oct 20, 2010 at 10:38 AM, Tejun Heo <tj@kernel.org> wrote:

In the past every time I saw a global variable being added in a
software project that meant that some software concept was not being
abstracted properly. Which does not necessarily mean that that is the
case with this patch.

With the posted patch, just like with the current implementation, e.g.
the flush_workqueue() call in the ipath driver will make that driver
wait until work scheduled by the core/sa_query.c code finished and
vice versa. Is that necessary ? If not, using multiple work queues for
IB instead of one would allow to get rid of that global ib_wq
declaration.

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

Messages in current thread:
Re: [PATCH v2.6.36-rc7] infiniband: update workqueue usage, Ralph Campbell, (Tue Oct 19, 10:22 am)
Re: [PATCH v2.6.36-rc7] infiniband: update workqueue usage, Bart Van Assche, (Tue Oct 19, 11:40 am)
Re: [PATCH v2.6.36-rc7] infiniband: update workqueue usage, Bart Van Assche, (Wed Oct 20, 3:21 am)