Lines Matching refs:lock
50 * Module locking notes: There is a RW lock protecting the L2 table as a
52 * under the protection of the table lock, individual entry changes happen
53 * while holding that entry's spinlock. The table lock nests outside the
54 * entry locks. Allocations of new entries take the table lock as writers so
56 * take the table lock as readers so multiple entries can be updated in
121 * Must be called with the entry's lock held.
135 spin_lock_bh(&e->lock);
138 spin_unlock_bh(&e->lock);
143 spin_lock_bh(&e->lock);
146 spin_unlock_bh(&e->lock);
150 spin_unlock_bh(&e->lock);
166 spin_lock_bh(&e->lock);
171 spin_unlock_bh(&e->lock);
185 spin_lock_bh(&e->lock);
189 spin_unlock_bh(&e->lock);
194 spin_lock_bh(&e->lock);
197 spin_unlock_bh(&e->lock);
200 spin_unlock_bh(&e->lock);
217 * Allocate a free L2T entry. Must be called with l2t_data.lock held.
261 * drops to 0 we need to take the entry's lock to avoid races with a new
266 spin_lock_bh(&e->lock);
273 spin_unlock_bh(&e->lock);
287 spin_lock(&e->lock); /* avoid race with t3_l2t_free */
299 spin_unlock(&e->lock);
333 write_lock_bh(&d->lock);
346 spin_lock(&e->lock); /* avoid race with t3_l2t_free */
359 spin_unlock(&e->lock);
362 write_unlock_bh(&d->lock);
408 read_lock_bh(&d->lock);
411 spin_lock(&e->lock);
414 read_unlock_bh(&d->lock);
420 read_unlock(&d->lock);
437 spin_unlock_bh(&e->lock);
455 rwlock_init(&d->lock);
461 spin_lock_init(&d->l2tab[i].lock);