On 5/17/23 07:33, Bart Van Assche wrote: > Introduce the function blk_rq_is_seq_zoned_write(). This function will > be used in later patches to preserve the order of zoned writes that > require write serialization. > > This patch includes an optimization: instead of using > rq->q->disk->part0->bd_queue to check whether or not the queue is > associated with a zoned block device, use rq->q->disk->queue. > > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Cc: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx> > Cc: Ming Lei <ming.lei@xxxxxxxxxx> > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx> -- Damien Le Moal Western Digital Research