dm-crypt: set atomic as false when calling crypt_convert() in kworker
authorHou Tao <houtao1@huawei.com>
Mon, 20 Jan 2025 08:29:46 +0000 (16:29 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 21 Jan 2025 12:24:35 +0000 (13:24 +0100)
commit6fd2cb38c006cbdc4653e7e15e37ab23af59c2de
treec1ab4e3976e8cbde4ad85c48101257cc98c7809b
parent6845de78ae3701ed19619cf786695072c73b8e92
dm-crypt: set atomic as false when calling crypt_convert() in kworker

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 <houtao1@huawei.com>
Reviewed-by: Ignat Korchagin <ignat@cloudflare.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-crypt.c