From: David Vrabel Date: Wed, 2 Jul 2014 15:09:14 +0000 (+0100) Subject: xen-netfront: don't nest queue locks in xennet_connect() X-Git-Tag: cleanup-for-v3.18~248^2~31^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f50b407653f64e76d1c9abda61d0d85cde3ca9ca;p=pandora-kernel.git xen-netfront: don't nest queue locks in xennet_connect() The nesting of the per-queue rx_lock and tx_lock in xennet_connect() is confusing to both humans and lockdep. The locking is safe because this is the only place where the locks are nested in this way but lockdep still warns. Instead of adding the missing lockdep annotations, refactor the locking to avoid the confusing nesting. This is still safe, because the xenbus connection state changes are all serialized by the xenwatch thread. Signed-off-by: David Vrabel Reported-by: Sander Eikelenboom Signed-off-by: David S. Miller --- Reading git-diff-tree failed