lkml.org 
[lkml]   [2006]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -mm 2/2] Use freezeable workqueues in XFS
    Date
    Make the workqueues used by XFS freezeable, so their worker threads don't
    submit any I/O after the suspend image has been created.

    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    ---
    fs/xfs/linux-2.6/xfs_buf.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    Index: linux-2.6.19-rc5-mm2/fs/xfs/linux-2.6/xfs_buf.c
    ===================================================================
    --- linux-2.6.19-rc5-mm2.orig/fs/xfs/linux-2.6/xfs_buf.c
    +++ linux-2.6.19-rc5-mm2/fs/xfs/linux-2.6/xfs_buf.c
    @@ -1826,11 +1826,11 @@ xfs_buf_init(void)
    if (!xfs_buf_zone)
    goto out_free_trace_buf;

    - xfslogd_workqueue = create_workqueue("xfslogd");
    + xfslogd_workqueue = create_freezeable_workqueue("xfslogd");
    if (!xfslogd_workqueue)
    goto out_free_buf_zone;

    - xfsdatad_workqueue = create_workqueue("xfsdatad");
    + xfsdatad_workqueue = create_freezeable_workqueue("xfsdatad");
    if (!xfsdatad_workqueue)
    goto out_destroy_xfslogd_workqueue;

    -
    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: 2006-11-16 09:25    [W:4.312 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site