> + */ > +bool blk_rq_is_seq_zoned_write(struct request *rq) > +{ > + switch (req_op(rq)) { > + case REQ_OP_WRITE: > + case REQ_OP_WRITE_ZEROES: > + return blk_rq_zone_is_seq(rq); This would be another use for op_is_zoned_write.. > bool blk_req_needs_zone_write_lock(struct request *rq) > { > return rq->q->disk->seq_zones_wlock && > - (req_op(rq) == REQ_OP_WRITE || > - req_op(rq) == REQ_OP_WRITE_ZEROES) && > - blk_rq_zone_is_seq(rq); > + blk_rq_is_seq_zoned_write(rq); > } .. and given that this just reshuffles the previous patch it might make sense to just move it before that.