Searched defs:locks (Results 1 - 8 of 8) sorted by relevance

H A Drrwlock.h85 * A reader-mostly lock implementation, tuning above reader-writer locks
93 rrwlock_t locks[RRM_NUM_LOCKS]; member in struct:rrmlock
H A Dcheck_locking.c434 static struct tracker_list *locks; variable in typeref:struct:tracker_list
695 add_tracker(&locks, my_id, name, sym);
706 add_tracker(&locks, my_id, name, sym);
720 add_tracker(&locks, my_id, name, sym);
743 add_tracker(&locks, my_id, name, sym);
1073 FOR_EACH_PTR(locks, tracker) {
H A Dnfs4_recovery.c717 * There must be a corresponding call to nfs4_end_op() to free up any locks
2195 * Reclaim all the active (acquired) locks for the given file.
2209 locklist_t *locks, *llp; local
2225 * and mark its remaining locks (if any) as belonging to NOPID, so
2230 locks = flk_active_locks_for_vp(vp);
2231 for (llp = locks; llp != NULL; llp = llp->ll_next) {
2289 if (locks != NULL)
2290 flk_free_locklist(locks);
2478 * Reopen all the files for the given filesystem and reclaim any locks.
3287 * locks tha
H A Dnfs4_vnops.c1990 * (in the absence of locks).
2284 * We could attempt to clean up locks, except we're sure
2285 * that the current process didn't acquire any locks on
2304 * release all of the SYSV style record locks. Otherwise,
2306 * of the network locks. All of the locks held by this
10515 * Don't allow concurrent locks and mapping if mandatory locking is
10922 * locks, this is so that the process gets the latest bits from the
10926 * allow unlocks to succeed, to avoid having orphan locks on the
11901 * structure without requiring any other locks
15844 locklist_t *locks, *llp, *ri_llp, *tmp_llp; local
H A Dtypegraph.c2965 foundlock_t *locks; local
2973 locks = mdb_zalloc(size, UM_SLEEP);
2976 bcopy(fl->fl_locks, locks, osize);
2980 fl->fl_locks = locks;
3058 * We have our type. Now iterate for locks. Note that we don't yet
3059 * deal with locks in flexible array members.
H A Dfd.c194 int locks);
1229 * If the locks parameter is nonzero, then all mutexes, semaphores and
1236 fd_cleanup(dev_info_t *dip, struct fdctlr *fdc, int hard, int locks) argument
1329 if (locks) {
1363 * Similarly, the locks parameter is also set to 1.
H A Dspa_misc.c68 * There are three basic locks for managing spa_t structures:
158 * To read the configuration, it suffices to hold one of these locks as reader.
159 * To modify the configuration, you must hold all locks as writer. To modify
163 * We use these distinct config locks to avoid recursive lock entry.
168 * The spa config locks cannot be normal rwlocks because we need the
205 * other locks, and lower than all of them, to ensure that it's safe
441 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) argument
445 if (!(locks & (1 << i)))
451 spa_config_exit(spa, locks & ((1 << i) - 1),
459 spa_config_exit(spa, locks
472 spa_config_enter(spa_t *spa, int locks, void *tag, krw_t rw) argument
505 spa_config_exit(spa_t *spa, int locks, void *tag) argument
524 spa_config_held(spa_t *spa, int locks, krw_t rw) argument
1330 int locks = SCL_STATE_ALL | oplocks; local
H A Dmetaslab.c420 * Must hold one of the spa_config locks.
905 int locks = spa_config_held(spa, SCL_ALL, RW_WRITER); local
926 * config locks. However, the metaslab group's taskq might be trying
928 * lower locks to allow the I/O to complete. At a minimum,
932 spa_config_exit(spa, locks & ~(SCL_ZIO - 1), spa);
934 spa_config_enter(spa, locks & ~(SCL_ZIO - 1), spa, RW_WRITER);
1241 * racy since we can't hold the locks for all metaslab
2016 * cannot do these assertions because we hold spa config locks and

Completed in 120 milliseconds