From: Tejun Heo Date: Thu, 25 Jun 2015 22:01:33 +0000 (-0700) Subject: netconsole: remove unnecessary netconsole_target_get/out() from write_msg() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~106^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d403ac96893cb5c5812c2d75de082795f02e5f;p=pandora-kernel.git 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 Cc: David Miller Cc: Kay Sievers Cc: Petr Mladek Cc: Tetsuo Handa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed