From: John Fastabend Date: Tue, 14 Aug 2012 12:34:35 +0000 (+0000) Subject: net: netprio: fix cgrp create and write priomap race X-Git-Tag: v3.6-rc3~10^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476ad154f3b41dd7d9a08a2f641e28388abc2fd1;p=pandora-kernel.git net: netprio: fix cgrp create and write priomap race A race exists where creating cgroups and also updating the priomap may result in losing a priomap update. This is because priomap writers are not protected by rtnl_lock. Move priority writer into rtnl_lock()/rtnl_unlock(). CC: Neil Horman Reported-by: Al Viro Signed-off-by: John Fastabend Acked-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed