Print this page
patch as-lock-macro-simplification

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/doorfs/door_sys.c
          +++ new/usr/src/uts/common/fs/doorfs/door_sys.c
↓ open down ↓ 3012 lines elided ↑ open up ↑
3013 3013                  return (E2BIG);
3014 3014          /*
3015 3015           * Check if we have a shadow page list from as_pagelock. If not,
3016 3016           * we took the slow path and have to find our page struct the hard
3017 3017           * way.
3018 3018           */
3019 3019          if (pplist == NULL) {
3020 3020                  pfn_t   pfnum;
3021 3021  
3022 3022                  /* MMU mapping is already locked down */
3023      -                AS_LOCK_ENTER(as, &as->a_lock, RW_READER);
     3023 +                AS_LOCK_ENTER(as, RW_READER);
3024 3024                  pfnum = hat_getpfnum(as->a_hat, rdest);
3025      -                AS_LOCK_EXIT(as, &as->a_lock);
     3025 +                AS_LOCK_EXIT(as);
3026 3026  
3027 3027                  /*
3028 3028                   * TODO: The pfn step should not be necessary - need
3029 3029                   * a hat_getpp() function.
3030 3030                   */
3031 3031                  if (pf_is_memory(pfnum)) {
3032 3032                          pp = page_numtopp_nolock(pfnum);
3033 3033                          ASSERT(pp == NULL || PAGE_LOCKED(pp));
3034 3034                  } else
3035 3035                          pp = NULL;
↓ open down ↓ 527 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX