Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Rafael J. Wysocki and committed by
Linus Torvalds
58e14b14 341a5958

+2 -2
+2 -2
fs/xfs/linux-2.6/xfs_buf.c
··· 1827 1827 if (!xfs_buf_zone) 1828 1828 goto out_free_trace_buf; 1829 1829 1830 - xfslogd_workqueue = create_workqueue("xfslogd"); 1830 + xfslogd_workqueue = create_freezeable_workqueue("xfslogd"); 1831 1831 if (!xfslogd_workqueue) 1832 1832 goto out_free_buf_zone; 1833 1833 1834 - xfsdatad_workqueue = create_workqueue("xfsdatad"); 1834 + xfsdatad_workqueue = create_freezeable_workqueue("xfsdatad"); 1835 1835 if (!xfsdatad_workqueue) 1836 1836 goto out_destroy_xfslogd_workqueue; 1837 1837