Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1565078
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] softirq: Reserve a bit in tasklet.state for the user |
| Date | 2017-01-23 17:00 +0100 |
| Message-ID | <t2Pce-8is-1@gated-at.bofh.it> (permalink) |
| References | <t2OSR-8bq-23@gated-at.bofh.it> <t2P2y-8f3-39@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 23 Jan 2017, Jens Axboe wrote:
> On 01/23/2017 08:33 AM, Chris Wilson wrote:
> > Allow the user to communicate with the tasklet through the atomic state
> > field by assigning a bit for their use. This can be used, for example,
> > to differentiate between a tasklet called following an irq or from
> > process context, where some hardware state may only be valid after the
> > irq.
> >
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Jens Axboe <axboe@kernel.dk>
> > Cc: Hannes Reinecke <hare@suse.com>
> > Cc: Bjorn Helgaas <bhelgaas@google.com>
> > Cc: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
> > Cc: Alexander Potapenko <glider@google.com>
> > ---
> > include/linux/interrupt.h | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
> > index 53144e78a369..ab321552089b 100644
> > --- a/include/linux/interrupt.h
> > +++ b/include/linux/interrupt.h
> > @@ -542,7 +542,8 @@ struct tasklet_struct name = { NULL, 0, ATOMIC_INIT(1), func, data }
> > enum
> > {
> > TASKLET_STATE_SCHED, /* Tasklet is scheduled for execution */
> > - TASKLET_STATE_RUN /* Tasklet is running (SMP only) */
> > + TASKLET_STATE_RUN, /* Tasklet is running (SMP only) */
> > + TASKLET_STATE_USER /* Reserved for use by the owner */
> > };
>
> I have no problem making that distinction, but it's impossible to ack
> this patch without having seen how you plan to utilize it, as the patch
> is meaningless on its own.
Right and w/o well defined semantics of this bit it's not at all
acceptable. tasklets have vagely semantics already, we really don't need to
increase that horror.
Thanks,
tglx
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] softirq: Reserve a bit in tasklet.state for the user Chris Wilson <chris@chris-wilson.co.uk> - 2017-01-23 16:40 +0100
Re: [PATCH] softirq: Reserve a bit in tasklet.state for the user Jens Axboe <axboe@kernel.dk> - 2017-01-23 16:50 +0100
Re: [PATCH] softirq: Reserve a bit in tasklet.state for the user Thomas Gleixner <tglx@linutronix.de> - 2017-01-23 17:00 +0100
Re: [PATCH] softirq: Reserve a bit in tasklet.state for the user Peter Zijlstra <peterz@infradead.org> - 2017-01-23 17:20 +0100
[PATCH] drm/i915: Only run execlist context-switch handler after an interrupt Chris Wilson <chris@chris-wilson.co.uk> - 2017-01-23 17:00 +0100
csiph-web