[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171213.223432.393103915049464102.davem@davemloft.net>
Date: Wed, 13 Dec 2017 22:34:32 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: baijiaju1990@...il.com
Cc: perex@...ex.cz, floeff@...hematik.uni-stuttgart.de,
acme@...ectiva.com.br, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] hp100: Fix a possible sleep-in-atomic bug in
hp100_login_to_vg_hub
From: Jia-Ju Bai <baijiaju1990@...il.com>
Date: Thu, 14 Dec 2017 11:13:15 +0800
> Thanks for reply :)
> I think I should use "udelay(100000/HZ)" instead, do you think it is
> right?
The delay is too long, please do not ignore that part of my critique
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.
Powered by blists - more mailing lists