Sorry,
I think I know your meaning now.
Maybe we can unlock the spinlock before "schedule_timeout_interruptible" and then lock again?
Like:
ÂÂÂ spin_unlock(...);
ÂÂÂ schedule_timeout_interruptible(1);
ÂÂÂ spin_lock(...);
Best wishes,
Jia-Ju Bai
On 2017/12/14 11:34, David Miller wrote:
From: Jia-Ju Bai <baijiaju1990@xxxxxxxxx>
Date: Thu, 14 Dec 2017 11:13:15 +0800
Thanks for reply :)The delay is too long, please do not ignore that part of my critique
I think I should use "udelay(100000/HZ)" instead, do you think it is
right?
of your change.
You cannot delay so long under a lock, that's why the code is trying
to use a sleeping delay.
I'm not going to explain this problem another time.