Searched refs:rwb (Results 1 – 4 of 4) sorted by relevance
/linux/block/ |
A D | blk-wbt.c | 151 else if (rwb->wc && !wb_recent_wait(rwb)) in wbt_rqw_done() 197 wb_timestamp(rwb, &rwb->last_comp); in wbt_done() 300 rwb->wb_normal = rwb->wb_background = 0; in calc_wb_limits() 302 rwb->wb_normal = rwb->rq_depth.max_depth; in calc_wb_limits() 340 rwb->cur_win_nsec = div_u64(rwb->win_nsec << 4, in rwb_arm_timer() 347 rwb->cur_win_nsec = rwb->win_nsec; in rwb_arm_timer() 517 .rwb = rwb, in __wbt_wait() 582 wb_timestamp(rwb, &rwb->last_issue); in wbt_wait() 824 rwb = kzalloc(sizeof(*rwb), GFP_KERNEL); in wbt_init() 825 if (!rwb) in wbt_init() [all …]
|
A D | blk-wbt.h | 78 static inline unsigned int wbt_inflight(struct rq_wb *rwb) in wbt_inflight() argument 83 ret += atomic_read(&rwb->rq_wait[i].inflight); in wbt_inflight()
|
/linux/kernel/locking/ |
A D | rwbase_rt.c | 80 atomic_inc(&rwb->readers); in __rwbase_read_lock() 129 atomic_inc(&rwb->readers); in __rwbase_read_lock() 139 if (rwbase_read_trylock(rwb)) in rwbase_read_lock() 142 return __rwbase_read_lock(rwb, state); in rwbase_read_lock() 179 __rwbase_read_unlock(rwb, state); in rwbase_read_unlock() 243 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_lock() 246 if (__rwbase_write_trylock(rwb)) in rwbase_write_lock() 254 __rwbase_write_unlock(rwb, 0, flags); in rwbase_write_lock() 258 if (__rwbase_write_trylock(rwb)) in rwbase_write_lock() 285 if (__rwbase_write_trylock(rwb)) { in rwbase_write_trylock() [all …]
|
/linux/include/linux/ |
A D | rwbase_rt.h | 29 static __always_inline bool rw_base_is_locked(struct rwbase_rt *rwb) in rw_base_is_locked() argument 31 return atomic_read(&rwb->readers) != READER_BIAS; in rw_base_is_locked() 34 static __always_inline bool rw_base_is_contended(struct rwbase_rt *rwb) in rw_base_is_contended() argument 36 return atomic_read(&rwb->readers) > 0; in rw_base_is_contended()
|
Completed in 8 milliseconds