Re: [PATCH v2 0/3] scsi: ufs & ums-*: fix module reference counting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 07, 2015 at 11:02:59PM +0900, Akinobu Mita wrote:
> While accessing a scsi_device, the use count of the underlying LLDD module
> is incremented.  The module reference is retrieved through .module field of
> struct scsi_host_template.
> 
> This mapping between scsi_device and underlying LLDD module works well
> except some scsi drivers (ufs and unusual usb storage drivers).  These
> drivers consist with core driver and actual LLDDs, and scsi_host_template
> is defined in the core driver.  So the actual LLDDs can be unloaded even if
> the scsi_device is being accessed.

Why don't ufs and usb-storage define the host templates in the sub drivers?
That's what libata or the mpt fusion driver do.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux