ipv4: remove nested rcu_read_lock/unlock
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Fri, 1 Aug 2014 06:00:36 +0000 (14:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Aug 2014 22:27:35 +0000 (15:27 -0700)
commit188b1210f3d633e27dc97309c97315ce484122ec
treef3931c6bf20fa3794d1fbc3ae43de5a28bb88a73
parente339756c9995648eecd015391f66baf2fd251fec
ipv4: remove nested rcu_read_lock/unlock

ip_local_deliver_finish() already have a rcu_read_lock/unlock, so
the rcu_read_lock/unlock is unnecessary.

See the stack below:
ip_local_deliver_finish
|
|
->icmp_rcv
|
|
->icmp_socket_deliver

Suggested-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c