From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] Save command pool address of Scsi_Host Date: Mon, 4 Aug 2014 04:03:10 -0700 Message-ID: <20140804110310.GA19109@infradead.org> References: <1406874425-3528-1-git-send-email-jgross@suse.com> <20140801120301.GA27198@infradead.org> <1406924674.2654.19.camel@jarvis> <53DF0AA3.2040209@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <53DF0AA3.2040209@suse.com> Sender: linux-kernel-owner@vger.kernel.org To: Juergen Gross Cc: James Bottomley , Christoph Hellwig , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org On Mon, Aug 04, 2014 at 06:22:59AM +0200, Juergen Gross wrote: > OTOH it would be possible to just delete .cmd_pool in the template when > deleting the pool. I'll send a patch doing this and you can decide > whether to take it or to use the other solution. > > I'm not sure which to prefer: the init/remove version is simple, while > the dynamic version requires no changes in the driver's source and the > pool's resources are allocated only when really needed. the init/remove version needs the driver to call a per-host template function/method from module_init/exit, something we've avoided successfully for the last 10 years.