From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [dm-devel] DM-CRYPT: Scale to multiple CPUs v3 Date: Sun, 10 Oct 2010 21:16:40 +0200 Message-ID: <20101010191640.GC21681@basil.fritz.box> References: <20101010115941.GA8539@basil.fritz.box> <4CB1B3B9.4030205@redhat.com> <20101010130842.GE8256@basil.fritz.box> <4CB1DD1A.5080906@redhat.com> <20101010162257.GA1272@redhat.com> <20101010170151.GD28828@agk-dp.fab.redhat.com> <20101010174454.GA21681@basil.fritz.box> <20101010181736.GE28828@agk-dp.fab.redhat.com> <20101010185100.GB21681@basil.fritz.box> <20101010190734.GH28828@agk-dp.fab.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20101010190734.GH28828@agk-dp.fab.redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: Andi Kleen , Milan Broz , Mike Snitzer , Andi Kleen , device-mapper development List-Id: dm-devel.ids > Not if in_interrupt is set though? > + if (per_cpu(io_wq_cpu, cpu) == current && !in_interrupt()) { > > What I am missing here? The interrupt doesn't block on the task. Actually most likely that check isn't needed anyways because that should not happen, was just pure paranoia from my side. > > (And assume there is only 1 CPU too for worst case behaviour, presumably.) One per process, previously it was always one per CPU. -Andi -- ak@linux.intel.com -- Speaking for myself only.