Rusty Russell
dc4515ea26
scsi: always increment reference count
...
James reported:
> After e513cc1 module: Remove stop_machine from module unloading,
> module_refcount() is returning (unsigned long)-1 when called from within
> a routine that runs in module_exit. This is confusing the scsi device
> put code which is coded to detect a module_refcount() of zero for
> running within a module exit routine and not try to do another
> module_put. The fix is to restore the original behaviour of
> module_refcount() and return zero if we're running inside an exit
> routine.
The correct fix is to turn try_module_get() into __module_get(), and
always do the module_put().
Acked-by: James Bottomley <James.Bottomley@HansenPartnership.com >
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2015-01-23 14:42:16 +10:30
..
2014-12-19 14:02:02 -08:00
2014-12-14 16:43:47 -08:00
2014-12-18 20:28:33 -08:00
2014-12-14 16:10:09 -08:00
2014-12-18 20:28:33 -08:00
2014-12-11 17:56:37 -08:00
2014-12-17 16:03:12 -08:00
2014-12-15 13:23:09 -05:00
2014-12-14 16:10:09 -08:00
2014-12-15 15:52:01 -08:00
2014-12-20 16:42:36 -08:00
2014-12-11 17:56:37 -08:00
2014-12-19 12:56:15 -08:00
2014-12-19 12:57:45 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:43:47 -08:00
2014-12-10 20:53:21 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-15 18:06:13 -08:00
2014-12-12 10:26:47 -08:00
2014-12-15 17:33:47 -08:00
2014-12-14 16:43:47 -08:00
2014-12-17 10:16:27 -08:00
2014-12-20 13:52:52 -08:00
2014-12-14 16:10:09 -08:00
2014-12-15 18:06:13 -08:00
2014-12-20 13:42:57 -08:00
2014-12-17 10:06:02 -08:00
2014-12-19 14:02:02 -08:00
2014-12-15 17:30:09 -08:00
2014-12-12 10:08:06 -08:00
2014-12-18 20:28:33 -08:00
2014-12-09 16:32:32 +02:00
2014-12-19 19:32:47 +01:00
2014-12-14 16:10:09 -08:00
2014-12-17 12:31:13 -05:00
2014-12-18 20:28:33 -08:00
2014-12-17 09:59:26 -08:00
2014-12-14 16:10:09 -08:00
2014-12-19 12:57:45 -08:00
2014-12-18 20:28:33 -08:00
2014-12-17 09:59:26 -08:00
2014-12-18 20:10:44 -08:00
2014-12-18 20:28:33 -08:00
2014-12-16 14:53:01 -08:00
2014-12-14 16:43:47 -08:00
2014-12-19 14:02:02 -08:00
2014-12-14 16:43:47 -08:00
2014-12-18 20:28:33 -08:00
2014-12-14 16:10:09 -08:00
2014-12-18 20:24:55 -08:00
2014-12-18 20:28:33 -08:00
2014-12-17 10:10:51 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-01-23 14:42:16 +10:30
2014-12-15 15:52:01 -08:00
2014-12-19 15:25:31 +01:00
2014-12-11 17:56:37 -08:00
2014-12-19 18:19:19 -08:00
2014-12-20 13:42:57 -08:00
2014-12-19 13:29:20 -08:00
2014-12-19 15:27:58 +01:00
2014-12-14 16:43:47 -08:00
2014-12-20 13:42:57 -08:00
2014-12-17 10:44:22 -08:00
2014-12-18 20:50:30 -08:00
2014-12-18 20:28:33 -08:00
2014-12-18 20:50:30 -08:00
2014-12-14 16:43:47 -08:00
2014-12-18 16:01:20 +01:00
2014-12-18 05:56:29 -08:00
2014-12-15 18:06:13 -08:00
2014-12-15 18:06:13 -08:00