Searched refs:SCL_STATE (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dmmp.c300 ASSERT(spa_config_held(spa, SCL_STATE, RW_READER));
405 spa_config_exit(spa, SCL_STATE, mmp_tag);
444 spa_config_enter(spa, SCL_STATE, mmp_tag, RW_READER);
447 zfs_dbgmsg("MMP SCL_STATE acquisition pool '%s' took %llu ns "
483 spa_config_exit(spa, SCL_STATE, mmp_tag);
H A Dspa_config.c376 spa_config_enter(spa, SCL_CONFIG | SCL_STATE, FTAG, RW_READER);
379 ASSERT(spa_config_held(spa, SCL_CONFIG | SCL_STATE, RW_READER) ==
380 (SCL_CONFIG | SCL_STATE));
507 spa_config_exit(spa, SCL_CONFIG | SCL_STATE, FTAG);
H A Dvdev_label.c189 spa_config_held(zio->io_spa, SCL_STATE, RW_READER) == SCL_STATE ||
190 spa_config_held(zio->io_spa, SCL_STATE, RW_WRITER) == SCL_STATE);
204 spa_config_held(zio->io_spa, SCL_STATE, RW_READER) == SCL_STATE ||
205 spa_config_held(zio->io_spa, SCL_STATE, RW_WRITER) == SCL_STATE);
H A Dvdev_removal.c393 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
398 spa_config_exit(spa, SCL_STATE, FTAG);
413 spa_config_exit(spa, SCL_STATE, FTAG);
418 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
433 spa_config_exit(spa, SCL_STATE, FTAG);
788 spa_config_exit(zio->io_spa, SCL_STATE, zio->io_spa);
1010 spa_config_enter(spa, SCL_STATE, spa, RW_READER);
H A Dspa.c840 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
842 spa_config_exit(spa, SCL_STATE, FTAG);
862 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
866 spa_config_exit(spa, SCL_STATE, FTAG);
6676 spa_config_enter(spa, SCL_CONFIG | SCL_STATE, FTAG, RW_READER);
6681 spa_config_exit(spa, SCL_CONFIG | SCL_STATE, FTAG);
6684 spa_config_exit(spa, SCL_CONFIG | SCL_STATE, FTAG);
6687 spa_config_exit(spa, SCL_CONFIG | SCL_STATE, FTAG);
6691 spa_config_exit(spa, SCL_CONFIG | SCL_STATE, FTAG);
6787 spa_config_enter(spa, SCL_CONFIG | SCL_STATE, FTA
[all...]
H A Dvdev_disk.c221 ASSERT(spa_config_held(vd->vdev_spa, SCL_STATE, RW_WRITER));
260 ASSERT(spa_config_held(vd->vdev_spa, SCL_STATE, RW_WRITER));
H A Dzil.c903 spa_config_enter(os->os_spa, SCL_STATE, FTAG, RW_READER);
907 spa_config_exit(os->os_spa, SCL_STATE, FTAG);
1089 spa_config_exit(zilog->zl_spa, SCL_STATE, lwb);
1176 ASSERT3S(spa_config_held(spa, SCL_STATE, RW_READER), !=, 0);
1495 spa_config_enter(zilog->zl_spa, SCL_STATE, lwb, RW_READER);
H A Dvdev_initialize.c615 ASSERT(!spa_config_held(vd->vdev_spa, SCL_CONFIG|SCL_STATE, RW_WRITER));
H A Dspa_misc.c155 * SCL_CONFIG > SCL_STATE > SCL_ALLOC > SCL_ZIO > SCL_FREE > SCL_VDEV.
161 * you must hold SCL_STATE and SCL_ZIO as writer.
181 * SCL_STATE
217 * SCL_STATE as reader suffices for both.
1063 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
1085 spa_config_exit(spa, SCL_STATE, FTAG);
H A Dvdev.c4200 * The state list is protected by the SCL_STATE lock. The caller
4201 * must either hold SCL_STATE as writer, or must be the sync thread
4202 * (which holds SCL_STATE as reader). There's only one sync thread,
4205 ASSERT(spa_config_held(spa, SCL_STATE, RW_WRITER) ||
4207 spa_config_held(spa, SCL_STATE, RW_READER)));
4219 ASSERT(spa_config_held(spa, SCL_STATE, RW_WRITER) ||
4221 spa_config_held(spa, SCL_STATE, RW_READER)));
H A Dzvol.c1168 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
1176 spa_config_exit(spa, SCL_STATE, FTAG);
H A Dvdev_trim.c975 ASSERT(!spa_config_held(vd->vdev_spa, SCL_CONFIG|SCL_STATE, RW_WRITER));
H A Ddnode.c1303 spa_config_held(os->os_spa, SCL_STATE, RW_WRITER)));
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c3476 ASSERT(spa_config_held(spa, SCL_STATE, RW_READER) == SCL_STATE);
3507 ASSERT(spa_config_held(spa, SCL_STATE, RW_READER) == SCL_STATE);
3511 spa_config_exit(spa, SCL_STATE, spa);
3513 spa_config_enter(spa, SCL_STATE, spa, RW_READER);
3592 spa_config_enter(spa, SCL_STATE, spa, RW_READER);
3601 spa_config_exit(spa, SCL_STATE, spa);
3631 spa_config_exit(spa, SCL_STATE, spa);
3657 spa_config_exit(spa, SCL_STATE, sp
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h880 #define SCL_STATE 0x02 macro
888 #define SCL_STATE_ALL (SCL_STATE | SCL_L2ARC | SCL_ZIO)
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c5794 spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
5817 spa_config_exit(spa, SCL_STATE, FTAG);

Completed in 133 milliseconds