Re: [PATCH] workqueue: Separate out drain_workqueue() fromdestroy_workqueue()

From: Tejun Heo
Date: Tue Apr 05 2011 - 12:07:21 EST


On Tue, Apr 05, 2011 at 07:47:01AM -0700, James Bottomley wrote:
> > James, does this seem to fit your use cases?
>
> Perfectly, thanks. It makes sure we have eliminated all work the
> workqueues generated before we return. This is needed in some of the
> SCSI waits where we want all discovery to complete, not just the piece
> the WQ started.

Cool, applied to wq#for-2.6.40 with minor printk adjustments. Please
feel free to pull into SCSI if necessary. It's a stable branch and
currently contains only the single commit.

git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-2.6.40

Thanks.

--
tejun
--
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/