From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:48866 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751032AbdCMNhJ (ORCPT ); Mon, 13 Mar 2017 09:37:09 -0400 Date: Mon, 13 Mar 2017 06:36:29 -0700 From: Christoph Hellwig To: Umesh Patel Cc: "linux-block@vger.kernel.org" Subject: Re: blk_init_queue vs blk_alloc_queue Message-ID: <20170313133629.GA29232@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Mon, Mar 13, 2017 at 09:14:12AM +0000, Umesh Patel wrote: > Hello, > > I Would like to know difference between blk_init_queue and blk_alloc_queue API. > Can anyone explain when to use what ? The short answer is that you should neither. The long answer is that you should send a link to your driver source if you want anyone to help you.