Re: [PATCH] n_hdlc fix read and write locking

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, October 25, 2010 - 1:05 pm

On Mon, 25 Oct 2010 13:22:39 -0500
Paul Fulghum <paulkf@microgate.com> wrote:


Missing a couple of cc's here...


And a signed-off-by:, please.


It's not a bug afaict, but beware that a copy_to_user() will
unconditionally flip this task back into TASK_RUNNING state if it takes
a pagefault.  This means that the below schedule() will fall straight
through.  It looks like the code will handle this correctly?  If so,
it's just a little suboptimal.


We normally use __set_current_state() here - it saves a few cycles.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] n_hdlc fix read and write locking, Paul Fulghum, (Mon Oct 25, 11:22 am)
Re: [PATCH] n_hdlc fix read and write locking, Andrew Morton, (Mon Oct 25, 1:05 pm)
[PATCH] n_hdlc fix read and write locking, Paul Fulghum, (Mon Oct 25, 1:29 pm)
Re: [PATCH] n_hdlc fix read and write locking, Arnd Bergmann, (Mon Oct 25, 1:31 pm)
Re: [PATCH] n_hdlc fix read and write locking, Paul Fulghum, (Mon Oct 25, 2:19 pm)
Re: [PATCH] n_hdlc fix read and write locking, Paul Fulghum, (Mon Oct 25, 4:18 pm)
Re: [PATCH] n_hdlc fix read and write locking, Arnd Bergmann, (Tue Oct 26, 3:40 am)