Roland Dreier
d0f474e501
target: Use LIST_HEAD()/DEFINE_MUTEX() for static objects
...
Instead of
static struct list_head foo;
static struct mutex bar;
...
INIT_LIST_HEAD(&foo);
mutex_init(&bar);
just do
static LIST_HEAD(foo);
static DEFINE_MUTEX(bar);
Also remove some superfluous struct list_head and spinlock_t
initialization calls where the variables are already defined using
macros that initialize them.
This saves a decent amount of compiled code too:
add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-178 (-178)
function old new delta
target_core_init_configfs 898 850 -48
core_scsi3_emulate_pro_preempt 1742 1683 -59
iscsi_thread_set_init 159 88 -71
Signed-off-by: Roland Dreier <roland@purestorage.com >
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org >
2012-02-25 14:37:46 -08:00
..
2012-01-13 09:32:20 +10:30
2012-02-08 15:07:03 -08:00
2012-01-08 13:10:57 -08:00
2012-02-13 18:31:37 +01:00
2012-01-13 09:32:20 +10:30
2012-02-18 15:37:25 -08:00
2012-02-06 14:37:52 -05:00
2012-02-11 10:07:11 -08:00
2012-01-13 09:32:20 +10:30
2012-02-08 20:03:14 +01:00
2012-01-26 18:36:48 +00:00
2012-01-06 18:15:25 -08:00
2012-01-11 18:53:33 -08:00
2012-01-10 22:01:27 -08:00
2012-02-02 14:00:43 +05:30
2012-01-13 09:32:20 +10:30
2012-01-30 21:33:34 +01:00
2012-01-12 11:53:55 -05:00
2012-02-01 21:59:37 -07:00
2012-02-14 13:36:23 +00:00
2012-02-07 13:40:56 +01:00
2012-01-09 12:09:47 -08:00
2012-02-09 11:21:49 -08:00
2012-02-13 05:40:38 +00:00
2012-02-13 18:31:37 +01:00
2012-01-19 21:26:32 -05:00
2012-02-25 14:37:45 -08:00
2012-02-04 10:57:42 -08:00
2012-01-30 12:53:14 +01:00
2012-02-09 15:41:29 -05:00
2012-02-08 19:03:51 -08:00
2012-01-12 15:44:47 +10:30
2012-02-16 16:15:12 +11:00
2012-02-08 19:06:30 -08:00
2012-01-26 17:04:47 -08:00
2012-01-13 09:32:20 +10:30
2012-01-10 10:36:08 -08:00
2012-02-13 14:16:07 -08:00
2012-02-09 13:51:13 -08:00
2012-02-13 20:39:05 -05:00
2012-02-04 07:17:47 -08:00
2012-02-15 15:41:10 -05:00
2012-01-07 12:03:30 -08:00
2012-01-14 13:25:55 -08:00
2012-01-06 08:02:58 -08:00
2012-01-11 18:50:26 -08:00
2012-01-14 12:32:16 -08:00
2012-02-18 15:26:11 -08:00
2012-02-08 19:03:51 -08:00
2012-02-01 19:35:21 +01:00
2012-01-13 09:32:20 +10:30
2012-01-06 12:11:20 -08:00
2012-02-01 21:34:26 +04:00
2012-02-10 11:20:55 +00:00
2012-02-13 18:31:36 +01:00
2012-01-18 18:03:42 +01:00
2012-01-26 12:43:57 -08:00
2012-01-11 23:29:20 -08:00
2012-02-05 23:24:17 -07:00
2012-02-01 15:26:00 -05:00
2012-02-08 16:19:06 -08:00
2012-02-25 14:37:46 -08:00
2012-01-23 03:15:25 -05:00
2012-02-09 10:48:36 -08:00
2012-01-11 18:50:26 -08:00
2012-02-03 11:22:44 -08:00
2012-01-09 12:09:47 -08:00
2012-01-13 10:12:23 -08:00
2012-02-09 17:56:53 +00:00
2012-01-28 08:10:23 +10:30
2012-01-27 10:01:16 +01:00
2012-02-03 16:07:05 -05:00
2012-01-11 23:58:47 -05:00