From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751416AbdAWQLK (ORCPT ); Mon, 23 Jan 2017 11:11:10 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:53880 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbdAWQLI (ORCPT ); Mon, 23 Jan 2017 11:11:08 -0500 Date: Mon, 23 Jan 2017 17:10:23 +0100 From: Peter Zijlstra To: Thomas Gleixner Cc: Jens Axboe , Chris Wilson , LKML , Hannes Reinecke , Bjorn Helgaas , Chen Fan , Alexander Potapenko , Ingo Molnar Subject: Re: [PATCH] softirq: Reserve a bit in tasklet.state for the user Message-ID: <20170123161023.GI6500@twins.programming.kicks-ass.net> References: <20170123153321.4245-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2017 at 04:59:32PM +0100, Thomas Gleixner wrote: > 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. Egads, this sounds like a horrible hack. What does 'after and irq' even mean?