Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block, bfq: use helper macro RQ_BFQQ to get bfqq of request

Use helper macro RQ_BFQQ to get bfqq of request.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230116095153.3810101-5-shikemeng@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Kemeng Shi and committed by
Jens Axboe
8ac2e43c 1c970450

+3 -3
+3 -3
block/bfq-iosched.c
··· 6859 6859 return NULL; 6860 6860 6861 6861 /* 6862 - * Assuming that elv.priv[1] is set only if everything is set 6862 + * Assuming that RQ_BFQQ(rq) is set only if everything is set 6863 6863 * for this rq. This holds true, because this function is 6864 6864 * invoked only for insertion or merging, and, after such 6865 6865 * events, a request cannot be manipulated any longer before 6866 6866 * being removed from bfq. 6867 6867 */ 6868 - if (rq->elv.priv[1]) 6869 - return rq->elv.priv[1]; 6868 + if (RQ_BFQQ(rq)) 6869 + return RQ_BFQQ(rq); 6870 6870 6871 6871 bic = icq_to_bic(rq->elv.icq); 6872 6872