On 3/27/24 5:43 PM, Damien Le Moal wrote:
Moving req_bio_endio() code into its only caller, blk_update_request(), allows reducing accesses to and tests of bio and request fields. Also, given that partial completions of zone append operations is not possible and that zone append operations cannot be merged, the update of the BIO sector using the request sector for these operations can be moved directly before the call to bio_endio().
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>
- if (unlikely(error && !blk_rq_is_passthrough(req) && - !(req->rq_flags & RQF_QUIET)) && - !test_bit(GD_DEAD, &req->q->disk->state)) { + if (unlikely(error && !blk_rq_is_passthrough(req) && !quiet) && + !test_bit(GD_DEAD, &req->q->disk->state)) {
A question that is independent of this patch series: is it a bug or is it a feature that the GD_DEAD bit test is not marked as "unlikely"? Thanks, Bart.