diff options
author | Dave Chinner <david@fromorbit.com> | 2014-11-27 22:52:02 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-11-27 22:52:02 -0500 |
commit | 4bd47c1bf4a64225a855ed77e259eeb37944ba33 (patch) | |
tree | 79aed8aaf3b04595d55762421d25d7ea2a5a5318 /fs/xfs/xfs_super.c | |
parent | 002758992693ae63c04122603ea9261a0a58d728 (diff) | |
parent | db52d09ecbf85c54e263a9d1ebfb615a9b2b3ba6 (diff) |
Merge branch 'xfs-misc-fixes-for-3.19-1' into for-next
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 9f622feda6a4..03e3cc242902 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -842,10 +842,16 @@ STATIC int | |||
842 | xfs_init_mount_workqueues( | 842 | xfs_init_mount_workqueues( |
843 | struct xfs_mount *mp) | 843 | struct xfs_mount *mp) |
844 | { | 844 | { |
845 | mp->m_buf_workqueue = alloc_workqueue("xfs-buf/%s", | ||
846 | WQ_MEM_RECLAIM|WQ_HIGHPRI|WQ_FREEZABLE, 1, | ||
847 | mp->m_fsname); | ||
848 | if (!mp->m_buf_workqueue) | ||
849 | goto out; | ||
850 | |||
845 | mp->m_data_workqueue = alloc_workqueue("xfs-data/%s", | 851 | mp->m_data_workqueue = alloc_workqueue("xfs-data/%s", |
846 | WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); | 852 | WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); |
847 | if (!mp->m_data_workqueue) | 853 | if (!mp->m_data_workqueue) |
848 | goto out; | 854 | goto out_destroy_buf; |
849 | 855 | ||
850 | mp->m_unwritten_workqueue = alloc_workqueue("xfs-conv/%s", | 856 | mp->m_unwritten_workqueue = alloc_workqueue("xfs-conv/%s", |
851 | WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); | 857 | WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); |
@@ -884,6 +890,8 @@ out_destroy_unwritten: | |||
884 | destroy_workqueue(mp->m_unwritten_workqueue); | 890 | destroy_workqueue(mp->m_unwritten_workqueue); |
885 | out_destroy_data_iodone_queue: | 891 | out_destroy_data_iodone_queue: |
886 | destroy_workqueue(mp->m_data_workqueue); | 892 | destroy_workqueue(mp->m_data_workqueue); |
893 | out_destroy_buf: | ||
894 | destroy_workqueue(mp->m_buf_workqueue); | ||
887 | out: | 895 | out: |
888 | return -ENOMEM; | 896 | return -ENOMEM; |
889 | } | 897 | } |
@@ -898,6 +906,7 @@ xfs_destroy_mount_workqueues( | |||
898 | destroy_workqueue(mp->m_cil_workqueue); | 906 | destroy_workqueue(mp->m_cil_workqueue); |
899 | destroy_workqueue(mp->m_data_workqueue); | 907 | destroy_workqueue(mp->m_data_workqueue); |
900 | destroy_workqueue(mp->m_unwritten_workqueue); | 908 | destroy_workqueue(mp->m_unwritten_workqueue); |
909 | destroy_workqueue(mp->m_buf_workqueue); | ||
901 | } | 910 | } |
902 | 911 | ||
903 | /* | 912 | /* |