From: Pravin B Shelar Date: Fri, 23 Aug 2013 19:44:55 +0000 (-0700) Subject: genl: Fix genl dumpit() locking. X-Git-Tag: v3.11~4^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b96309c5b0b9e466773c07a5bc8b7b68fcf010a;p=pandora-kernel.git genl: Fix genl dumpit() locking. In case of genl-family with parallel ops off, dumpif() callback is expected to run under genl_lock, But commit def3117493eafd9df (genl: Allow concurrent genl callbacks.) changed this behaviour where only first dumpit() op was called under genl-lock. For subsequent dump, only nlk->cb_lock was taken. Following patch fixes it by defining locked dumpit() and done() callback which takes care of genl-locking. CC: Jesse Gross CC: Johannes Berg Signed-off-by: Pravin B Shelar Signed-off-by: David S. Miller --- Reading git-diff-tree failed