[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yl+wJ7xSHzWmR+bR@infradead.org>
Date: Wed, 20 Apr 2022 00:03:03 -0700
From: Christoph Hellwig <hch@...radead.org>
To: John Garry <john.garry@...wei.com>
Cc: "Ewan D. Milne" <emilne@...hat.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
Doug Gilbert <dgilbert@...erlog.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
james.smart@...adcom.com
Subject: Re: [PATCH 1/4] scsi: core: constify pointer to scsi_host_template
On Tue, Apr 12, 2022 at 08:57:39AM +0100, John Garry wrote:
> >
>
> The standard flow is:
>
> shost = scsi_host_alloc(sht, )
>
> // modify shost, like
> shost->cmd_per_lun = 5;
>
> scsi_add_host(shost)
>
> Is there some reason for which those two drivers can't follow that?
I think they should. Method tables should not be mutable data.
Powered by blists - more mailing lists