Re: [PATCH] printk: drop ambiguous LOG_CONT flag
From: Kay Sievers
Date: Fri Sep 28 2012 - 10:56:21 EST
On Fri, Sep 28, 2012 at 4:49 PM, "Jan H. SchÃnherr"
<schnhrr@xxxxxxxxxxxxxxx> wrote:
> Am 28.09.2012 16:34, schrieb Kay Sievers:
>> On Fri, Sep 28, 2012 at 10:25 AM, Jan H. SchÃnherr
>> The current behaviour has the advantage, that non-cont users will not
>> race against a cont user (which is like 99.x% of the races I expect).
>> The cont buffer is currently only used when we expect a cont user,
>> non-cont users happening in the middle of a cont-print will not flush
>> the and disturb the cont buffer.
>
> That should be fixable by using a second set of flags, owner, and so on
> within vprintk... I still think, that getting rid of of remotely tracking
> the flags is worth something.
Sure, sounds fine in theory.
> (Ideally, we should also be able to correctly reassemble multiple
> simultaneous cont users. But that it still a bit out of scope I think.)
Yeah, that's messy, and not really worth it, I guess. We enter per-cpu
data and in_interrupt() territory with that, which is not really worth
the complexity for cont printing. The one separated cont buffer works
pretty well already.
> Given that I'm able to fix the racing case, would you be in favor of
> this approach, or should we stick to the earlier version?
I'm open to everything that makes sense. Let's see how it looks and we
can decide when we have something that passes the tests.
Thanks,
Kay
--
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/