[PATCH v5 3/4] usb: storage: adjust module reference for scsi host

2015-02-28 Thread Akinobu Mita
module reference to usb_stor_probe1() so that .module field in struct Scsi_Host can be adjusted. Signed-off-by: Akinobu Mita Acked-by: Alan Stern Cc: Matthew Dharm Cc: Greg Kroah-Hartman Cc: Alan Stern Cc: Christoph Hellwig Cc: "James E.J. Bottomley" Cc: linux-usb@vger.kernel.org Cc

[PATCH v5 1/4] scsi: add ability to adjust module reference for scsi host

2015-02-28 Thread Akinobu Mita
though it instead of struct scsi_host_template. This allows the actual LLDDs adjust module reference. Signed-off-by: Akinobu Mita Reviewed-by: Hannes Reinecke Cc: Vinayak Holikatti Cc: Dolev Raviv Cc: Sujit Reddy Thumma Cc: Subhash Jadavani Cc: Christoph Hellwig Cc: "James E.J. Bott

[PATCH v5 0/4] scsi: ufs & ums-* & esp_scsi: fix module reference counting

2015-02-28 Thread Akinobu Mita
x for ESP SCSI drivers * v2: - Pass correct module reference to usb_stor_probe1() instead of touching all ums-* drivers, suggested by Alan Stern Akinobu Mita (4): scsi: add ability to adjust module reference for scsi host scsi: ufs: adjust module reference for scsi host usb: storage: a

Re: [PATCH v4 00/11] scsi: fix module reference mismatch for scsi host

2015-01-22 Thread Akinobu Mita
2015-01-21 0:20 GMT+09:00 Alan Stern : > On Tue, 20 Jan 2015, Akinobu Mita wrote: > >> 2015-01-19 23:22 GMT+09:00 Tejun Heo : >> > On Mon, Jan 19, 2015 at 12:05:58AM +0900, Akinobu Mita wrote: >> >> While accessing a scsi_device, the use count of the underlying

Re: [PATCH v4 00/11] scsi: fix module reference mismatch for scsi host

2015-01-20 Thread Akinobu Mita
2015-01-19 23:22 GMT+09:00 Tejun Heo : > On Mon, Jan 19, 2015 at 12:05:58AM +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 stru

[PATCH v4 09/11] usb: storage: adjust module reference for scsi host

2015-01-18 Thread Akinobu Mita
these drivers can be unloaded even if the scsi device is being accessed. This fixes it by converting usb_stor_probe1() into macro so that these drivers can pass their correct module reference through __scsi_host_alloc(). Signed-off-by: Akinobu Mita Cc: Matthew Dharm Cc: Greg Kroah-Hartman Cc: Alan

[PATCH v4 07/11] scsi: move module reference from scsi_host_template to Scsi_Host

2015-01-18 Thread Akinobu Mita
defined in esp_scsi module, so these had module reference mismatch problem, but this change implicitly fixes it. Because sub drivers directly call scsi_host_alloc() and THIS_MODULE is used for the module reference instead of scsi_host_template->module. Signed-off-by: Akinobu Mita Cc: Vina

[PATCH v4 00/11] scsi: fix module reference mismatch for scsi host

2015-01-18 Thread Akinobu Mita
: and Reviewed-by: tags that have been received are deleted. * v3: - Add fix for ESP SCSI drivers * v2: - Pass correct module reference to usb_stor_probe1() instead of touching all ums-* drivers, suggested by Alan Stern Akinobu Mita (11): ata: prepare to move module reference from

Re: [PATCH v3 0/4] scsi: ufs & ums-* & esp_scsi: fix module reference counting

2015-01-13 Thread Akinobu Mita
2015-01-12 18:36 GMT+09:00 Christoph Hellwig : > On Sun, Jan 11, 2015 at 10:50:02PM +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 >> stru

[PATCH v3 1/4] scsi: add ability to adjust module reference for scsi host

2015-01-11 Thread Akinobu Mita
though it instead of struct scsi_host_template. This allows the actual LLDDs adjust module reference. 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

[PATCH v3 3/4] usb: storage: adjust module reference for scsi host

2015-01-11 Thread Akinobu Mita
module reference to usb_stor_probe1() so that .module field in struct Scsi_Host can be adjusted. Signed-off-by: Akinobu Mita Acked-by: Alan Stern Cc: Matthew Dharm Cc: Greg Kroah-Hartman Cc: Alan Stern Cc: Christoph Hellwig Cc: "James E.J. Bottomley" Cc: linux-usb@vger.kernel.org Cc

[PATCH v3 0/4] scsi: ufs & ums-* & esp_scsi: fix module reference counting

2015-01-11 Thread Akinobu Mita
LLDDs and then fixes actual LLDDs by adjusting module reference after scsi host allocation. * v3: - Add fix for ESP SCSI drivers * v2: - Pass correct module reference to usb_stor_probe1() instead of touching all ums-* drivers, suggested by Alan Stern Akinobu Mita (4): scsi: add ability to adjust

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

2015-01-08 Thread Akinobu Mita
2015-01-08 0:09 GMT+09:00 Alan Stern : > On Wed, 7 Jan 2015, Christoph Hellwig wrote: > >> 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

[PATCH v2 3/3] usb: storage: adjust module reference for scsi host

2015-01-07 Thread Akinobu Mita
module reference to usb_stor_probe1() to adjust it after scsi host allocation. Signed-off-by: Akinobu Mita Cc: Matthew Dharm Cc: Greg Kroah-Hartman Cc: Alan Stern Cc: Christoph Hellwig Cc: "James E.J. Bottomley" Cc: linux-usb@vger.kernel.org Cc: usb-stor...@lists.one-eyed-alien.net C

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

2015-01-07 Thread Akinobu Mita
then fixes ufs and unusual usb storage drivers by adjusting module reference after scsi host allocation. * v2: - Pass correct module reference to usb_stor_probe1() instead of touching all ums-* drivers, suggested by Alan Stern Akinobu Mita (3): scsi: add ability to adjust module reference for

[PATCH v2 1/3] scsi: add ability to adjust module reference for scsi host

2015-01-07 Thread Akinobu Mita
though it instead of struct scsi_host_template. This allows the actual LLDDs adjust module reference. 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:

Re: [PATCH 3/3] usb: storage: adjust module reference for scsi host

2015-01-05 Thread Akinobu Mita
2015-01-06 0:27 GMT+09:00 Alan Stern : > On Mon, 5 Jan 2015, Akinobu Mita wrote: > >> While accessing a unusual usb storage (ums-alauda, ums-cypress, ...), >> the module reference count is not incremented. Because these drivers >> allocate scsi hosts with usb_stor_host

[PATCH 1/3] scsi: add ability to adjust module reference for scsi host

2015-01-05 Thread Akinobu Mita
though it instead of struct scsi_host_template. This allows the actual LLDDs adjust module reference. 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:

[PATCH 3/3] usb: storage: adjust module reference for scsi host

2015-01-05 Thread Akinobu Mita
reference after scsi host allocation. Signed-off-by: Akinobu Mita Cc: Matthew Dharm Cc: Greg Kroah-Hartman Cc: Christoph Hellwig Cc: "James E.J. Bottomley" Cc: linux-usb@vger.kernel.org Cc: usb-stor...@lists.one-eyed-alien.net Cc: linux-s...@vger.kernel.org --- drivers/usb/storag

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

2015-01-05 Thread Akinobu Mita
then fixes ufs and unusual usb storage drivers by adjusting module reference after scsi host allocation. Akinobu Mita (3): scsi: add ability to adjust module reference for scsi host scsi: ufs: adjust module reference for scsi host usb: storage: adjust module reference for scsi host drivers

[PATCH -v3 13/23] uwb: rename random32() to prandom_u32()

2013-03-04 Thread Akinobu Mita
Use more preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita Cc: linux-usb@vger.kernel.org --- No change from v2 drivers/uwb/rsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uwb/rsv.c b/drivers/uwb

[PATCH -v2 14/26] uwb: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
Use more preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita Cc: linux-usb@vger.kernel.org --- No change from v1 drivers/uwb/rsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uwb/rsv.c b/drivers/uwb

[PATCH 14/29] uwb: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
Use more preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita Cc: linux-usb@vger.kernel.org --- drivers/uwb/rsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uwb/rsv.c b/drivers/uwb/rsv.c index 0b0d8bc