mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 08:05:27 +08:00
[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>
This commit is contained in:
parent
341a595850
commit
58e14b148d
@ -1827,11 +1827,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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user