在 2023/2/26 10:01, Bart Van Assche 写道:
On 2/22/23 19:19, yangerkun wrote:@@ -1924,6 +1926,10 @@ static int dmcrypt_write(void *data) BUG_ON(rb_parent(write_tree.rb_node)); + if (time_is_before_jiffies(start_time + HZ)) { + schedule(); + start_time = jiffies; + }Why schedule() instead of cond_resched()?
cond_resched may not really schedule, which may trigger the problem too, but it seems after 1 second, it may never happend?
Thanks, Kun.
Thanks, Bart.
-- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
