On 01/11/2015 02:50 PM, Akinobu Mita wrote: > While accessing a scsi device on host adapter supported by sub driver for > the ESP chip (mac_esp, am53c974, sun_esp, jazz_esp, sun3x_esp), the module > reference count is not incremented. Because these drivers allocate scsi > hosts with scsi_esp_template defined in ESP SCSI driver core module. So > these drivers always can be unloaded. > > This fixes it by passing correct module reference to newly introduced > scsi_esp_host_alloc() so that .module field in struct Scsi_Host can be > adjusted. > > Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx> > Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: "James E.J. Bottomley" <JBottomley@xxxxxxxxxxxxx> > Cc: linux-scsi@xxxxxxxxxxxxxxx > --- > New patch from v3 > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html