[Devel] [PATCH rh7] ploop: disable WRITE SAME for io_kaio

Maxim Patlasov mpatlasov at virtuozzo.com
Mon Dec 28 14:42:19 PST 2015


On 12/28/2015 02:45 AM, Konstantin Khorenko wrote:
> Maxim, and what about 2.6.32-x kernel?
> Need the patch there as well?

No. Because 2.6.32-x implements blkdev_issue_zeroout() without 
WRITE_SAME requests.

>
> -- 
> Best regards,
>
> Konstantin Khorenko,
> Virtuozzo Linux Kernel Team
>
> On 12/24/2015 03:55 AM, Maxim Patlasov wrote:
>> kaio doesn't support WRITE SAME, so the patch disables it
>>
>> https://jira.sw.ru/browse/PSBM-41965
>>
>> Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>
>> ---
>>   drivers/block/ploop/io_kaio.c |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/block/ploop/io_kaio.c 
>> b/drivers/block/ploop/io_kaio.c
>> index db900a3..79aa9af 100644
>> --- a/drivers/block/ploop/io_kaio.c
>> +++ b/drivers/block/ploop/io_kaio.c
>> @@ -946,6 +946,7 @@ static void kaio_unplug(struct ploop_io * io)
>>   static void kaio_queue_settings(struct ploop_io * io, struct 
>> request_queue * q)
>>   {
>>       blk_set_stacking_limits(&q->limits);
>> +    blk_queue_max_write_same_sectors(q, 0);
>>   }
>>
>>   static void kaio_issue_flush(struct ploop_io * io, struct 
>> ploop_request *preq)
>>
>>



More information about the Devel mailing list