Lines Matching full:writer
7 * Writer lock-stealing by Alex Shi <alex.shi@intel.com>
41 * When the rwsem is reader-owned and a spinning writer has timed out,
44 * When a writer acquires a rwsem, it puts its task_struct pointer
59 * is previously owned by a writer and the following conditions are met:
60 * - rwsem is not currently writer owned
84 * Bit 0 - writer locked bit
93 * Bit 0 - writer locked bit
106 * atomic_long_cmpxchg() will be used to obtain writer lock.
113 * For all the above cases, wait_lock will be held. A writer must also
297 * by a writer.
306 * and a writer has just released the lock. So another writer may steal
433 * Mark writer at the front of the queue for wakeup. in rwsem_mark_wake()
437 * will notice the queued writer. in rwsem_mark_wake()
455 * so we can bail out early if a writer stole the lock. in rwsem_mark_wake()
576 * writer slowpaths with wait_lock held. It releases the wait_lock and
676 * OWNER_WRITER: when owner changes and is a writer
692 * Try to acquire write lock before the writer has been put on wait queue.
768 * When a waiting writer set the handoff flag, it may spin in rwsem_spin_on_owner()
769 * on the owner as well. Once that writer acquires the lock, in rwsem_spin_on_owner()
801 * Calculate reader-owned rwsem spinning threshold for writer
841 * 1) the owning writer isn't running; or in rwsem_optimistic_spin()
866 * This allows a writer to steal the lock in between in rwsem_optimistic_spin()
909 * writer. in rwsem_optimistic_spin()
914 * writer. Of course, if the time lag is long enough or the in rwsem_optimistic_spin()
915 * new owner is not a writer or spinnable, the RT task will in rwsem_optimistic_spin()
918 * If the owner is a writer, the need_resched() check is in rwsem_optimistic_spin()
920 * a writer, need_resched() check needs to be done here. in rwsem_optimistic_spin()
978 * given wake_q if the rwsem lock owner isn't a writer. If rwsem is likely
982 * This is being called from both reader and writer slow paths.
1053 * by a writer, this reader can exit the slowpath and return in rwsem_down_read_slowpath()
1174 * transfer. If the previous owner is a on-cpu writer and it in rwsem_down_write_slowpath()
1358 * to an anonymous writer by setting the RWSEM_NONSPINNABLE bits. in __up_write()