[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120201.021002.1399660597996401402.davem@davemloft.net>
Date: Wed, 01 Feb 2012 02:10:02 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: lizf@...fujitsu.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org,
nhorman@...driver.com
Subject: Re: [PATCH 6/6] cls_cgroup: remove redundant rcu_read_lock/unlock
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 01 Feb 2012 08:07:19 +0100
> Then, I wonder why we do the "if (classid && classid != sk->sk_classid)"
>
> before the :
>
> sk->sk_classid = classid;
>
> This seems unnecessary checks.
>
Avoiding dirtying the sk->sk_classid cache line unnecessarily?
I actually have no idea actually how often this routine can get
invoked in real world scenerios.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists