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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux