Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/blkdev/blkdev.c
          +++ new/usr/src/uts/common/io/blkdev/blkdev.c
↓ open down ↓ 1440 lines elided ↑ open up ↑
1441 1441                  bd_update_state(bd);
1442 1442  
1443 1443                  mutex_enter(&bd->d_statemutex);
1444 1444  
1445 1445                  if (bd->d_state != *state) {
1446 1446                          *state = bd->d_state;
1447 1447                          mutex_exit(&bd->d_statemutex);
1448 1448                          break;
1449 1449                  }
1450 1450  
1451      -                when = drv_usectohz(1000000);
     1451 +                when = drv_sectohz(1);
1452 1452                  if (cv_reltimedwait_sig(&bd->d_statecv, &bd->d_statemutex,
1453 1453                      when, TR_CLOCK_TICK) == 0) {
1454 1454                          mutex_exit(&bd->d_statemutex);
1455 1455                          return (EINTR);
1456 1456                  }
1457 1457  
1458 1458                  mutex_exit(&bd->d_statemutex);
1459 1459          }
1460 1460  
1461 1461          return (0);
↓ open down ↓ 315 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX