lkml.org 
[lkml]   [2007]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Problem with freezable workqueues
    On Tue, Feb 27, 2007 at 10:51:27PM +0100, Rafael J. Wysocki wrote:
    > We have a problem with freezable workqueues in 2.6.21-rc1 and in -mm
    > (there are only two of them, in XFS, but still). Namely, their worker threads
    > deadlock with workqueue_cpu_callback() that gets called during the CPU hotplug,
    > becuase workqueue_cpu_callback() tries to stop these threads while they are
    > frozen (disable_nonboot_cpus() happens after we've frozen tasks).

    This problem (of kthread_stopping a frozen thread) was there when we
    implemented freezer-based cpu hotplug. We worked around that in the
    callbacks by thawing the worker thread first before kthread_stopping it,
    which is working pretty neatly.

    Should that fix the issue?

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

    \
     
     \ /
      Last update: 2007-02-28 04:03    [W:2.936 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site