From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: Re: [PATCH v3 1/4] scsi: add ability to adjust module reference for scsi host Date: Mon, 12 Jan 2015 10:17:46 +0100 Message-ID: <54B3913A.8060508@suse.de> References: <1420984206-22341-1-git-send-email-akinobu.mita@gmail.com> <1420984206-22341-2-git-send-email-akinobu.mita@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1420984206-22341-2-git-send-email-akinobu.mita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Akinobu Mita , linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Vinayak Holikatti , Dolev Raviv , Sujit Reddy Thumma , Subhash Jadavani , Christoph Hellwig , "James E.J. Bottomley" , Matthew Dharm , Greg Kroah-Hartman , Alan Stern , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, usb-storage-ijkIwGHArpdIPJnuZ7Njw4oP9KaGy4wf@public.gmane.org List-Id: linux-scsi@vger.kernel.org On 01/11/2015 02:50 PM, Akinobu Mita wrote: > While accessing a scsi_device, the use count of the underlying LLDD m= odule > is incremented. The module reference is retrieved through .module fi= eld of > struct scsi_host_template. >=20 > This mapping between scsi_device and underlying LLDD module works wel= l > except ufs, unusual usb storage drivers, and sub drivers for esp_scsi= =2E > These drivers consist with core driver and actual LLDDs, and > scsi_host_template is defined in the core driver. So the actual LLDD= s can > be unloaded even if the scsi_device is being accessed. >=20 > This adds .module field in struct Scsi_Host and let the module refere= nce > be retrieved though it instead of struct scsi_host_template. This al= lows > the actual LLDDs adjust module reference. >=20 > Signed-off-by: Akinobu Mita > Cc: Vinayak Holikatti > Cc: Dolev Raviv > Cc: Sujit Reddy Thumma > Cc: Subhash Jadavani > Cc: Christoph Hellwig > Cc: "James E.J. Bottomley" > Cc: Matthew Dharm > Cc: Greg Kroah-Hartman > Cc: Alan Stern > Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: usb-storage-ijkIwGHArpdIPJnuZ7Njw4oP9KaGy4wf@public.gmane.org > Cc: linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Reviewed-by: Hannes Reinecke Cheers, Hannes --=20 Dr. Hannes Reinecke zSeries & Storage hare-l3A5Bk7waGM@public.gmane.org +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: F. Imend=F6rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N=FCrnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html