Whamcloud - gitweb
LU-687 ldiskfs: resolve section dynlocks mismatch
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 26 Jan 2012 10:06:30 +0000 (03:06 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Feb 2012 02:52:21 +0000 (21:52 -0500)
commit182c2f8a6dd1a7d8493e5442656a5071333beb17
tree302f3816f84c2f431f303c5838ee66842cbad7a6
parent7d3723d80078c0852b9511523960ba5f4590643c
LU-687 ldiskfs: resolve section dynlocks mismatch

Fix __init/__exit section mismatch.

  WARNING: lustre-2.1.0/ldiskfs/ldiskfs/ldiskfs.o(.init.text+0x1bc):
  Section mismatch in reference from the function init_module() to the
  function .exit.text:dynlock_cache_exit().  An __init init_module()
  function references a function __exit dynlock_cache_exit().

  This is often seen when error handling in the init function uses
  functionality in the exit path.  The fix is often to remove the
  __exit annotation of dynlock_cache_exit() so it may be used outside
  an exit section.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie0bdde7f78c18bca1127151175cf56bfa6ad500c
Reviewed-on: http://review.whamcloud.com/2019
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/ext4-dynlocks-common-rhel6.patch
ldiskfs/kernel_patches/patches/ext4-dynlocks-common-sles11.patch
ldiskfs/kernel_patches/patches/ext4-dynlocks-common.patch