]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d1fd805dbed419a3f98a1b913a07a9fd0b72af4
treed244f08ff93011174544252f07d61517cefba1ec
parentad89c254df88645ff8cb69c649dd4e75ad773f6e
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