Print this page
OS-7753 THREAD_KPRI_RELEASE does nothing of the sort
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/bio.c
          +++ new/usr/src/uts/common/os/bio.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24      - * Copyright 2011 Joyent, Inc.  All rights reserved.
       24 + * Copyright 2019 Joyent, Inc.
  25   25   */
  26   26  
  27   27  /*
  28   28   * Copyright (c) 2016 by Delphix. All rights reserved.
  29   29   */
  30   30  
  31   31  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  32   32  /*        All Rights Reserved   */
  33   33  
  34   34  /*
↓ open down ↓ 1338 lines elided ↑ open up ↑
1373 1373          bp->b_pages = pp;
1374 1374          bp->b_flags = B_PAGEIO | B_NOCACHE | B_BUSY | flags;
1375 1375          bp->b_offset = -1;
1376 1376          sema_init(&bp->b_io, 0, NULL, SEMA_DEFAULT, NULL);
1377 1377  
1378 1378          /* Initialize bp->b_sem in "locked" state */
1379 1379          sema_init(&bp->b_sem, 0, NULL, SEMA_DEFAULT, NULL);
1380 1380  
1381 1381          VN_HOLD(vp);
1382 1382          bp->b_vp = vp;
1383      -        THREAD_KPRI_RELEASE_N(btopr(len)); /* release kpri from page_locks */
1384 1383  
1385 1384          /*
1386 1385           * Caller sets dev & blkno and can adjust
1387 1386           * b_addr for page offset and can use bp_mapin
1388 1387           * to make pages kernel addressable.
1389 1388           */
1390 1389          return (bp);
1391 1390  }
1392 1391  
1393 1392  void
↓ open down ↓ 701 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX