From: Zach Brown Date: Fri, 22 Jun 2007 22:14:46 +0000 (-0700) Subject: SCTP: lock_sock_nested in sctp_sock_migrate X-Git-Tag: v2.6.22-rc7~12^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5131a184a3458d9ac47d9eba032cf4c4d3295afd;p=pandora-kernel.git SCTP: lock_sock_nested in sctp_sock_migrate sctp_sock_migrate() grabs the socket lock on a newly allocated socket while holding the socket lock on an old socket. lockdep worries that this might be a recursive lock attempt. task/3026 is trying to acquire lock: (sk_lock-AF_INET){--..}, at: [] sctp_sock_migrate+0x2e3/0x327 [sctp] but task is already holding lock: (sk_lock-AF_INET){--..}, at: [] sctp_accept+0xdf/0x1e3 [sctp] This patch tells lockdep that this locking is safe by using lock_sock_nested(). Signed-off-by: Zach Brown Signed-off-by: Vlad Yasevich --- Reading git-diff-tree failed