xfs: Register hotcpu notifier after initialization
authorRichard Weinberger <richard@nod.at>
Mon, 19 Aug 2013 20:56:44 +0000 (22:56 +0200)
committerBen Myers <bpm@sgi.com>
Thu, 22 Aug 2013 19:05:27 +0000 (14:05 -0500)
commit46677e679fba8c2db7c94a7142ad9abb72192ebc
treed244f08ff93011174544252f07d61517cefba1ec
parent3e3c51cee9a07d67e3910cc514867b56ac60ec94
xfs: Register hotcpu notifier after initialization

Currently the code initializizes mp->m_icsb_mutex and other things
_after_ register_hotcpu_notifier().
As the notifier takes mp->m_icsb_mutex it can happen
that it takes the lock before it's initialization.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_mount.c