Hi, Works well for me Tested-by: Pavel Begunkov <[email protected]>
Yet, take a look at the comment below.
By the way,
Fixes: 795fe54c2a828099e ("block: move blk_stat_add() to
__blk_mq_end_request()")
On 21/05/2019 10:59, Hou Tao wrote:
> +++ b/include/linux/blkdev.h
> @@ -202,9 +202,12 @@ struct request {
> #ifdef CONFIG_BLK_WBT
> unsigned short wbt_flags;
> #endif
> -#ifdef CONFIG_BLK_DEV_THROTTLING_LOW
> - unsigned short throtl_size;
> -#endif
> + /*
> + * rq sectors used for blk stats. It has the same value
> + * with blk_rq_sectors(rq), except that it never be zeroed
> + * by completion.
> + */
> + unsigned short stats_sectors;
It can handle max 32MiB. Can a request's data be larger than that?
>
> /*
> * Number of scatter-gather DMA addr+len pairs after
> @@ -892,6 +895,7 @@ static inline struct request_queue *bdev_get_queue(struct
> block_device *bdev)
> * blk_rq_err_bytes() : bytes left till the next error
> boundary
--
Yours sincerely,
Pavel Begunkov
signature.asc
Description: OpenPGP digital signature
