Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58e14b14 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Linus Torvalds
Browse files

[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: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@suspend2.net>
Cc: David Chinner <dgc@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 341a5958
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1827,11 +1827,11 @@ xfs_buf_init(void)
	if (!xfs_buf_zone)
	if (!xfs_buf_zone)
		goto out_free_trace_buf;
		goto out_free_trace_buf;


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


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