From: Eric Dumazet Date: Thu, 20 Dec 2012 17:25:08 +0000 (+0000) Subject: net: devnet_rename_seq should be a seqcount X-Git-Tag: v3.8-rc2~19^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30e6c9fa93cf3dbc7cc6df1d748ad25e4264545a;p=pandora-kernel.git net: devnet_rename_seq should be a seqcount Using a seqlock for devnet_rename_seq is not a good idea, as device_rename() can sleep. As we hold RTNL, we dont need a protection for writers, and only need a seqcount so that readers can catch a change done by a writer. Bug added in commit c91f6df2db4972d3 (sockopt: Change getsockopt() of SO_BINDTODEVICE to return an interface name) Reported-by: Dave Jones Signed-off-by: Eric Dumazet Cc: Brian Haley Signed-off-by: David S. Miller --- Reading git-diff-tree failed