From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 08/18] block: Make scsi_req_init() calls implicit Date: Sun, 21 May 2017 08:42:35 +0200 Message-ID: <20170521064235.GA12755@lst.de> References: <20170519183016.12646-1-bart.vanassche@sandisk.com> <20170519183016.12646-9-bart.vanassche@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from verein.lst.de ([213.95.11.211]:42750 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbdEUGmh (ORCPT ); Sun, 21 May 2017 02:42:37 -0400 Content-Disposition: inline In-Reply-To: <20170519183016.12646-9-bart.vanassche@sandisk.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Bart Van Assche Cc: "Martin K . Petersen" , James Bottomley , linux-scsi@vger.kernel.org, Jens Axboe , Christoph Hellwig , Omar Sandoval , Hannes Reinecke , linux-block@vger.kernel.org On Fri, May 19, 2017 at 11:30:06AM -0700, Bart Van Assche wrote: > Instead of explicitly calling scsi_req_init(), let > blk_get_request() call that function from inside blk_rq_init(). > Add an .initialize_rq_fn() callback function to the block drivers > that need it. Thanks Bart, this looks like a very nice cleanup. > Merge the IDE .init_rq_fn() function into > .initialize_rq_fn() because it is too small to keep it as a > separate function. Although we can't do this IFF we don't call .initialize_rq_fn from the fast path (which I think we should).