xfs: fix duplicate workqueue initialisation
PATCH 1/1 xfs: fix duplicate workqueue initialisation
From: Dave Chinner <[email protected]>
The workqueue initialisation function is called twice when initialising the XFS subsystem. Remove the second initialisation call.
--- fs/xfs/linux-2.6/xfs_super.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
fs/xfs/linux-2.6/xfs_super.c +0 -4
@@ -1800,10 +1800,6 @@ init_xfs_fs(void)if (error) goto out_cleanup_procfs; - error =xfs_init_workqueues (); -if (error) - goto out_sysctl_unregister; -vfs_initquota (); error =register_filesystem (&xfs_fs_type);
Signature · 6 lines
1.7.4.4 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Dave Chinner
From: Dave Chinner <[email protected]>
The workqueue initialisation function is called twice when initialising the XFS subsystem. Remove the second initialisation call.
Not sure how we got there, but it looks indeed buggy. I'm kinda surprised the workqueue code didn't blow up with the duplicate names.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Alex Elder
Reviewed-byQuoted 9 lines · Christoph Hellwig
Quoted 5 lines · Dave Chinner
From: Dave Chinner <[email protected]>
The workqueue initialisation function is called twice when initialising the XFS subsystem. Remove the second initialisation call.
Not sure how we got there, but it looks indeed buggy. I'm kinda surprised the workqueue code didn't blow up with the duplicate names.
Maybe duplicated by a merge along the way?
The second set of workqueues prevails, leaving the originals unused and leaked. In fact, an xfs module can probably even unload cleanly because it doesn't really "own" the workqueue, which by itself is an interesting artifact.
This is clearly a bug but I don't think it is truly harmful, so I am not going to send it to Linus for 2.6.39. If you disagree, let me know and I'll send it separately.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs