Re: [PATCH 01/26] block: Restore sector of flush requests

Damien Le Moal
2024-02-05T23:42:35Z

On 2/6/24 02:22, Bart Van Assche wrote:
> On 2/1/24 23:30, Damien Le Moal wrote:
>> diff --git a/block/blk-flush.c b/block/blk-flush.c
>> index b0f314f4bc14..2f58ae018464 100644
>> --- a/block/blk-flush.c
>> +++ b/block/blk-flush.c
>> @@ -130,6 +130,7 @@ static void blk_flush_restore_request(struct request *rq)
>> * original @rq->bio. Restore it.
>> */
>> rq->bio = rq->biotail;
>> + rq->__sector = rq->bio->bi_iter.bi_sector;
>
> Hmm ... is it guaranteed that rq->bio != NULL in this context?

Yes.

>
> Thanks,
>
> Bart.
>

--
Damien Le Moal
Western Digital Research