Tejun Heo a6d403ac96 netconsole: remove unnecessary netconsole_target_get/out() from write_msg()
write_msg() grabs target_list_lock and walks target_list invoking
netpool_send_udp() on each target.  Curiously, it protects each iteration
with netconsole_target_get/put() even though it never releases
target_list_lock which protects all the members.

While this doesn't harm anything, it doesn't serve any purpose either.
The items on the list can't go away while target_list_lock is held.
Remove the unnecessary get/put pair.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David Miller <davem@davemloft.net>
Cc: Kay Sievers <kay@vrfy.org>
Cc: Petr Mladek <pmladek@suse.cz>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-25 17:00:39 -07:00
..
2015-06-23 17:25:32 -07:00
2015-06-24 08:46:32 -07:00
2015-06-22 15:15:36 +02:00
2015-06-23 13:39:56 -07:00
2015-06-23 17:31:27 -07:00
2015-06-23 18:27:19 -07:00
2015-06-24 08:46:32 -07:00
2015-06-25 17:00:38 -07:00
2015-06-25 17:00:38 -07:00
2015-06-19 01:18:43 +02:00
2015-06-23 13:32:38 -07:00
2015-06-23 17:31:27 -07:00
2015-06-25 17:00:38 -07:00
2015-06-24 08:46:32 -07:00
2015-06-24 18:57:00 -07:00
2015-06-24 17:49:45 -07:00