• Home
  • Raw
  • Download

Lines Matching refs:rq

66 bool blk_req_needs_zone_write_lock(struct request *rq)  in blk_req_needs_zone_write_lock()  argument
68 if (!rq->q->seq_zones_wlock) in blk_req_needs_zone_write_lock()
71 if (blk_rq_is_passthrough(rq)) in blk_req_needs_zone_write_lock()
74 switch (req_op(rq)) { in blk_req_needs_zone_write_lock()
78 return blk_rq_zone_is_seq(rq); in blk_req_needs_zone_write_lock()
85 bool blk_req_zone_write_trylock(struct request *rq) in blk_req_zone_write_trylock() argument
87 unsigned int zno = blk_rq_zone_no(rq); in blk_req_zone_write_trylock()
89 if (test_and_set_bit(zno, rq->q->seq_zones_wlock)) in blk_req_zone_write_trylock()
92 WARN_ON_ONCE(rq->rq_flags & RQF_ZONE_WRITE_LOCKED); in blk_req_zone_write_trylock()
93 rq->rq_flags |= RQF_ZONE_WRITE_LOCKED; in blk_req_zone_write_trylock()
99 void __blk_req_zone_write_lock(struct request *rq) in __blk_req_zone_write_lock() argument
101 if (WARN_ON_ONCE(test_and_set_bit(blk_rq_zone_no(rq), in __blk_req_zone_write_lock()
102 rq->q->seq_zones_wlock))) in __blk_req_zone_write_lock()
105 WARN_ON_ONCE(rq->rq_flags & RQF_ZONE_WRITE_LOCKED); in __blk_req_zone_write_lock()
106 rq->rq_flags |= RQF_ZONE_WRITE_LOCKED; in __blk_req_zone_write_lock()
110 void __blk_req_zone_write_unlock(struct request *rq) in __blk_req_zone_write_unlock() argument
112 rq->rq_flags &= ~RQF_ZONE_WRITE_LOCKED; in __blk_req_zone_write_unlock()
113 if (rq->q->seq_zones_wlock) in __blk_req_zone_write_unlock()
114 WARN_ON_ONCE(!test_and_clear_bit(blk_rq_zone_no(rq), in __blk_req_zone_write_unlock()
115 rq->q->seq_zones_wlock)); in __blk_req_zone_write_unlock()