Re: [PATCH 1/3] resource: shared I/O region support
From: Alan Cox
Date: Thu Mar 25 2010 - 14:14:29 EST
> Always fun reviewing your own code ;-)
>
> New patch attached.
>
> One question though. I did some reading in
> Documentation/memory-barriers.txt and think it is correct *not* to call
> set_current_state(TASK_INTERRUPTIBLE) after schedule() finishes. Could
> you confirm or deny that?
After the schedule() returns we will be in TASK_RUNNING which is where we
want to be ...
> + if (res->flags & IORESOURCE_MUXED)
> + wake_up(&muxed_resource_wait);
> kfree(res);
> return;
And you'll want a
Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
> }
--
--
"Alan, I'm getting a bit worried about you."
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/