Print this page
NEX-3758 Support for remote stale lock detection
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
        
*** 8,18 ****
   * source.  A copy is of the CDDL is also available via the Internet
   * at http://www.illumos.org/license/CDDL.
   */
  
  /*
!  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
   * Copyright (c) 2012 by Delphix. All rights reserved.
   */
  
  /*
   * NFS Lock Manager, server-side and common.
--- 8,18 ----
   * source.  A copy is of the CDDL is also available via the Internet
   * at http://www.illumos.org/license/CDDL.
   */
  
  /*
!  * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
   * Copyright (c) 2012 by Delphix. All rights reserved.
   */
  
  /*
   * NFS Lock Manager, server-side and common.
*** 134,145 ****
          zone_key_create(&nlm_zone_key, lm_zone_init, NULL, lm_zone_fini);
          /* Per-zone lockmgr data.  See: os/flock.c */
          zone_key_create(&flock_zone_key, flk_zone_init, NULL, flk_zone_fini);
  
          retval = mod_install(&modlinkage);
!         if (retval == 0)
                  return (0);
  
          /*
           * mod_install failed! undo above, reverse order
           */
  
--- 134,147 ----
          zone_key_create(&nlm_zone_key, lm_zone_init, NULL, lm_zone_fini);
          /* Per-zone lockmgr data.  See: os/flock.c */
          zone_key_create(&flock_zone_key, flk_zone_init, NULL, flk_zone_fini);
  
          retval = mod_install(&modlinkage);
!         if (retval == 0) {
!                 flk_add_sysid_to_host_translator(nlm_sysid_to_host);
                  return (0);
+         }
  
          /*
           * mod_install failed! undo above, reverse order
           */