Re: [PATCH 1/6] dm-crypt: set atomic as false when calling crypt_convert() in kworker

2025-01-20 Thread Ignat Korchagin
Hi, On Mon, Jan 20, 2025 at 8:18 AM Hou Tao wrote: > > From: Hou Tao > > Both kcryptd_crypt_write_continue() and kcryptd_crypt_read_continue() > are running in the kworker context, it is OK to call cond_resched(), yes, indeed > Therefore, set atomic as false when invoking crypt_convert() under

[PATCH 1/6] dm-crypt: set atomic as false when calling crypt_convert() in kworker

2025-01-20 Thread Hou Tao
From: Hou Tao Both kcryptd_crypt_write_continue() and kcryptd_crypt_read_continue() are running in the kworker context, it is OK to call cond_resched(), Therefore, set atomic as false when invoking crypt_convert() under kworker context. Signed-off-by: Hou Tao --- drivers/md/dm-crypt.c | 4 ++--