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-08 07:42:25 -08:00
2014-11-24 14:45:27 +01:00
2014-12-18 05:56:29 -08:00
2014-11-24 14:45:27 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 14:45:27 +01:00
2014-11-24 14:45:27 +01:00
2014-12-18 05:56:29 -08:00
2014-11-24 14:45:27 +01:00
2014-12-18 05:56:29 -08:00
2014-12-12 11:22:30 -05:00
2014-11-12 11:19:36 +01:00
2014-12-04 09:58:33 +01:00
2014-12-18 05:56:29 -08:00
2014-12-04 09:55:45 +01:00
2014-12-04 09:58:33 +01:00
2014-12-18 05:56:29 -08:00
2014-11-24 14:45:27 +01:00
2014-12-18 05:56:29 -08:00
2014-12-18 05:56:29 -08:00
2014-12-12 10:08:06 -08:00
2014-12-18 05:56:29 -08:00
2014-12-04 09:58:34 +01:00
2014-12-18 05:56:29 -08:00
2014-11-24 20:01:28 +01:00
2014-08-26 09:35:54 +02:00
2014-12-18 05:56:29 -08:00
2014-12-15 13:34:23 +01:00
2014-11-24 14:45:27 +01:00
2014-11-24 14:45:27 +01:00
2014-12-18 20:28:33 -08:00
2014-11-24 14:45:27 +01:00
2014-11-24 14:45:27 +01:00
2014-11-24 14:45:27 +01:00
2014-07-25 17:16:56 -04:00
2014-12-04 09:57:13 +01:00
2014-08-08 15:57:29 -07:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2014-12-04 09:58:33 +01:00
2014-11-12 11:15:57 +01:00
2014-11-12 11:16:08 +01:00
2014-11-24 16:13:18 +01:00
2014-11-20 09:11:21 +01:00
2014-11-20 09:11:20 +01:00
2014-11-24 14:45:27 +01:00
2014-10-20 16:21:33 +02:00
2014-11-24 20:01:28 +01:00
2014-12-02 18:26:52 +01:00
2014-07-17 22:07:38 +02:00
2014-11-20 09:11:11 +01:00
2014-11-24 14:45:27 +01:00
2014-07-17 22:07:37 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-03-19 15:04:44 -07:00
2014-11-24 14:45:27 +01:00
2014-11-24 16:13:17 +01:00
2014-11-24 16:13:16 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 20:01:40 +01:00
2014-11-12 11:19:41 +01:00
2014-11-20 09:11:25 +01:00
2014-11-24 14:45:27 +01:00
2014-11-20 09:11:25 +01:00
2014-11-24 14:45:27 +01:00
2014-07-17 22:07:37 +02:00
2014-03-19 15:04:44 -07:00
2014-12-15 13:34:29 +01:00
2014-12-15 13:34:28 +01:00
2014-11-24 14:45:27 +01:00
2014-03-15 10:19:19 -07:00
2014-11-24 14:45:27 +01:00
2014-04-11 16:15:36 -04:00
2014-10-20 16:21:33 +02:00
2014-12-15 13:34:25 +01:00
2014-03-15 10:19:18 -07:00
2014-11-24 14:45:27 +01:00
2014-10-20 16:21:33 +02:00
2014-12-12 10:08:06 -08:00
2014-11-25 15:42:54 +01:00
2014-11-12 11:16:08 +01:00
2014-03-27 08:26:31 -07:00
2014-08-08 15:57:29 -07:00
2014-10-20 16:21:33 +02:00
2014-08-12 12:15:14 -06:00
2014-11-24 14:45:27 +01:00
2014-07-17 22:07:35 +02:00
2014-07-25 17:16:56 -04:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:20 +01:00
2014-10-07 21:29:18 -04:00
2014-11-24 20:01:28 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-12-04 09:55:45 +01:00
2014-12-12 10:08:06 -08:00
2014-11-24 14:45:27 +01:00
2014-07-25 17:16:55 -04:00
2014-10-20 16:21:33 +02:00
2014-12-15 13:34:27 +01:00
2014-12-15 10:41:23 +01:00
2014-12-08 07:42:25 -08:00
2014-11-12 11:16:12 +01:00
2014-12-15 10:31:33 +01:00
2014-11-12 11:16:05 +01:00
2014-04-24 13:44:54 -04:00
2014-12-15 15:11:06 +01:00
2014-12-15 15:11:06 +01:00
2014-07-17 22:07:37 +02:00
2014-12-08 07:42:25 -08:00
2014-06-06 16:08:16 -07:00
2014-12-04 09:55:45 +01:00
2014-11-24 20:01:40 +01:00
2014-07-25 17:16:54 -04:00
2014-08-04 13:16:14 +02:00
2014-07-17 22:07:37 +02:00
2014-12-04 09:58:33 +01:00
2014-08-14 11:09:05 -06:00
2015-01-23 14:42:16 +10:30
2014-11-12 11:15:54 +01:00
2014-09-30 15:17:35 -06:00
2014-11-24 20:01:40 +01:00
2014-11-12 11:15:57 +01:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:16:11 +01:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2014-11-12 11:16:03 +01:00
2014-07-17 22:07:39 +02:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:15:57 +01:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:19:44 +01:00
2014-12-15 13:34:29 +01:00
2014-05-28 12:16:28 +02:00
2014-11-20 09:11:20 +01:00
2014-11-20 09:11:15 +01:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 14:45:27 +01:00
2014-12-11 12:20:31 -08:00
2014-11-24 14:45:28 +01:00
2014-09-24 11:52:09 -06:00
2014-07-17 22:07:37 +02:00
2014-11-27 16:40:16 +01:00
2014-11-25 15:42:54 +01:00
2014-11-24 14:45:27 +01:00
2014-10-06 10:27:57 +01:00