Workqueues have clean and rich API for all basic operations. The code is usually
easier and better readable. It can be easily tuned for the given purpose.
In many cases, it allows to avoid an extra kernel thread. It helps to stop the
growing number of them. Also there will be less thread-specific
On Thu, Nov 20, 2014 at 05:03:17PM +0100, Petr Mladek wrote:
...
@@ -476,7 +460,6 @@ static void virtballoon_remove(struct virtio_device *vdev)
{
struct virtio_balloon *vb = vdev-priv;
- kthread_stop(vb-thread);
remove_common(vb);
kfree(vb);
}
Shouldn't the work
On Thu, Nov 20, 2014 at 11:07:46AM -0500, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 05:03:17PM +0100, Petr Mladek wrote:
...
@@ -476,7 +460,6 @@ static void virtballoon_remove(struct virtio_device
*vdev)
{
struct virtio_balloon *vb = vdev-priv;
- kthread_stop(vb-thread);
On Thu, Nov 20, 2014 at 06:25:43PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 11:07:46AM -0500, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 05:03:17PM +0100, Petr Mladek wrote:
...
@@ -476,7 +460,6 @@ static void virtballoon_remove(struct virtio_device
*vdev)
{
On Thu, Nov 20, 2014 at 06:26:24PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 06:25:43PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 11:07:46AM -0500, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 05:03:17PM +0100, Petr Mladek wrote:
...
@@ -476,7 +460,6 @@
On Thu, Nov 20, 2014 at 06:47:11PM +0200, Michael S. Tsirkin wrote:
There's cancel_work_sync() to stop the self-requeueing ones.
What happens if queue_work runs while cancel_work_sync is in progress?
Does it fail to queue?
cancel_work_sync() is guaranteed to take self-requeueing work items
On Thu, Nov 20, 2014 at 11:49:33AM -0500, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 06:47:11PM +0200, Michael S. Tsirkin wrote:
There's cancel_work_sync() to stop the self-requeueing ones.
What happens if queue_work runs while cancel_work_sync is in progress?
Does it fail to queue?
On Thu, Nov 20, 2014 at 11:49:33AM -0500, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 06:47:11PM +0200, Michael S. Tsirkin wrote:
There's cancel_work_sync() to stop the self-requeueing ones.
What happens if queue_work runs while cancel_work_sync is in progress?
Does it fail to queue?
On Thu 2014-11-20 11:29:35, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 06:26:24PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 06:25:43PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 11:07:46AM -0500, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 05:03:17PM +0100, Petr
On Thu, Nov 20, 2014 at 05:55:58PM +0100, Petr Mladek wrote:
On Thu 2014-11-20 11:29:35, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 06:26:24PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 06:25:43PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 11:07:46AM -0500,
On Thu 2014-11-20 19:00:16, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 05:55:58PM +0100, Petr Mladek wrote:
On Thu 2014-11-20 11:29:35, Tejun Heo wrote:
On Thu, Nov 20, 2014 at 06:26:24PM +0200, Michael S. Tsirkin wrote:
On Thu, Nov 20, 2014 at 06:25:43PM +0200, Michael S. Tsirkin
11 matches
Mail list logo