From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 11/18] scsi: Move most of scsi_init_command() into scsi_initialize_rq() Date: Sun, 21 May 2017 08:46:05 +0200 Message-ID: <20170521064605.GA12876@lst.de> References: <20170519183016.12646-1-bart.vanassche@sandisk.com> <20170519183016.12646-12-bart.vanassche@sandisk.com> <20170521064523.GD12755@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from verein.lst.de ([213.95.11.211]:42772 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbdEUGqG (ORCPT ); Sun, 21 May 2017 02:46:06 -0400 Content-Disposition: inline In-Reply-To: <20170521064523.GD12755@lst.de> 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, Christoph Hellwig , Hannes Reinecke On Sun, May 21, 2017 at 08:45:23AM +0200, Christoph Hellwig wrote: > On Fri, May 19, 2017 at 11:30:09AM -0700, Bart Van Assche wrote: > > Move the initializations that only have to be performed once and > > not every time a request is prepared from scsi_init_command() > > into scsi_initialize_rq(). This patch also moves the > > jiffies_at_alloc assignment such that it gets back the meaning it > > had before commit e9c787e65c0c, namely the value of the jiffies > > counter at request allocation time. > > How does this account for the kmalloced request in scsi_ioctl_reset()? Oh, because that currently manually calls blk_rq_init..