Re: [PATCH v16 07/26] block: Support block drivers that preserve the order of write requests

Bart Van Assche
2024-11-19T21:08:29Z

On 11/18/24 11:37 PM, Damien Le Moal wrote:
> On 11/19/24 09:27, Bart Van Assche wrote:
>> diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
>> index a1fd0ddce5cf..72be33d02d1f 100644
>> --- a/include/linux/blkdev.h
>> +++ b/include/linux/blkdev.h
>> @@ -397,6 +397,11 @@ struct queue_limits {
>>
>> unsigned int max_open_zones;
>> unsigned int max_active_zones;
>> + /*
>> + * Whether or not the block driver preserves the order of write
>> + * requests. Set by the block driver.
>> + */
>> + bool driver_preserves_write_order;
>
> Why not make this a q->features flag ?

I assume that you meant q->limits.features? I will look into this.

Thanks,

Bart.