From: Jeff Layton Date: Tue, 11 Jan 2011 12:24:02 +0000 (-0500) Subject: cifs: clean up accesses to midCount X-Git-Tag: v2.6.38-rc2~23^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8097531a5cb55c6472118da094dc88caf9be66ac;p=pandora-kernel.git cifs: clean up accesses to midCount It's an atomic_t and the code accesses the "counter" field in it directly instead of using atomic_read(). It also is sometimes accessed under a spinlock and sometimes not. Move it out of the spinlock since we don't need belt-and-suspenders for something that's just informational. Reviewed-by: Suresh Jayaraman Reviewed-by: Pavel Shilovsky Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed