Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753916AbYLHWjU (ORCPT ); Mon, 8 Dec 2008 17:39:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753174AbYLHWjF (ORCPT ); Mon, 8 Dec 2008 17:39:05 -0500 Received: from wf-out-1314.google.com ([209.85.200.173]:53389 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbYLHWjC (ORCPT ); Mon, 8 Dec 2008 17:39:02 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=OltXl0fn8POkP8XmC3Y2yKztV3CwxY7CSr5Nrve1JM6ds+4oNiLkSzSkroBrgbRdaf zgb3/wLjyfXMmFW1gmeuTOe4nRIXfeAWjd4KP8fnroVigh+Ht7uERvNow77g+d5Ws8t/ Z83lVCQcJKSGdj/Zk6/Ihin5fOYO+RE2QRQyU= Message-ID: Date: Mon, 8 Dec 2008 15:39:01 -0700 From: "Dan Williams" To: "Guennadi Liakhovetski" Subject: Re: [PATCH 03/13] dmaengine: up-level reference counting to the module level Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, maciej.sosnowski@intel.com, hskinnemoen@atmel.com, nicolas.ferre@atmel.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081114213300.32354.1154.stgit@dwillia2-linux.ch.intel.com> <20081114213432.32354.2427.stgit@dwillia2-linux.ch.intel.com> X-Google-Sender-Auth: a6afef55ea8bfc2a Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 542 Lines: 12 On Thu, Dec 4, 2008 at 12:28 PM, Guennadi Liakhovetski wrote: > Ok, but why not postpone calling .device_alloc_chan_resources() until a > channel is _found_? dma_find_channel() is called in fast paths (atomic contexts, I/O writeout), so we need to allocate ahead of time. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/