[Devel] [RFC PATCH vz9 v6 12/62] dm-ploop: WIP move from wq to kthread

Alexander Atanasov alexander.atanasov at virtuozzo.com
Mon Dec 16 13:21:01 MSK 2024


On 13.12.24 10:48, Andrey Zhadchenko wrote:
> 
> 
> On 12/5/24 22:55, Alexander Atanasov wrote:
>> This is a base for moving to multithreaded model.
>>
>> https://virtuozzo.atlassian.net/browse/VSTOR-91821
>> Signed-off-by: Alexander Atanasov <alexander.atanasov at virtuozzo.com>
>> ---
>>   drivers/md/dm-ploop-map.c    | 65 ++++++++++++++++++++++++++++++++----
>>   drivers/md/dm-ploop-target.c | 60 +++++++++++++++++++++++++++++++++
>>   drivers/md/dm-ploop.h        | 10 ++++++
>>   3 files changed, 128 insertions(+), 7 deletions(-)
>>

[snip]

>> +    if (ploop->kt_worker) {
>> +        wake_up_process(ploop->kt_worker->task);
>> +        // FIXME: a better way to wait for lists to drain
> 
> We already have inflight_bios_ref for that. The only exception for this 
> would be delayed writeback.


This is actually properly handled. fixme removed.


-- 
Regards,
Alexander Atanasov



More information about the Devel mailing list