Re: [PATCH v4 01/11] block: Pass blk_queue_get_max_sectors() a request pointer

From: Keith Busch
Date: Mon Feb 19 2024 - 13:58:32 EST


On Mon, Feb 19, 2024 at 01:00:59PM +0000, John Garry wrote:
> Currently blk_queue_get_max_sectors() is passed a enum req_op. In future
> the value returned from blk_queue_get_max_sectors() may depend on certain
> request flags, so pass a request pointer.
>
> Also use rq->cmd_flags instead of rq->bio->bi_opf when possible.

Looks good.

Reviewed-by: Keith Busch <kbusch@xxxxxxxxxx>