aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2006-12-06 23:34:50 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:29 -0500
commit58e14b148ddb56f0bf999965d6279932ed4a00bc (patch)
tree3e7225a03d740da0bb10fbfbbd1f9c8920f2e0f1 /fs/xfs
parent341a595850dac1b0503df34260257d71b4fdf72c (diff)
[PATCH] Use freezeable workqueues in XFS
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> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Nigel Cunningham <nigel@suspend2.net> Cc: David Chinner <dgc@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index b971237c5a9f..4fb01ffdfd1a 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1827,11 +1827,11 @@ xfs_buf_init(void)
1827 if (!xfs_buf_zone) 1827 if (!xfs_buf_zone)
1828 goto out_free_trace_buf; 1828 goto out_free_trace_buf;
1829 1829
1830 xfslogd_workqueue = create_workqueue("xfslogd"); 1830 xfslogd_workqueue = create_freezeable_workqueue("xfslogd");
1831 if (!xfslogd_workqueue) 1831 if (!xfslogd_workqueue)
1832 goto out_free_buf_zone; 1832 goto out_free_buf_zone;
1833 1833
1834 xfsdatad_workqueue = create_workqueue("xfsdatad"); 1834 xfsdatad_workqueue = create_freezeable_workqueue("xfsdatad");
1835 if (!xfsdatad_workqueue) 1835 if (!xfsdatad_workqueue)
1836 goto out_destroy_xfslogd_workqueue; 1836 goto out_destroy_xfslogd_workqueue;
1837 1837