]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: clean up accesses to midCount
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Jan 2011 12:24:02 +0000 (07:24 -0500)
committerSteve French <sfrench@us.ibm.com>
Wed, 19 Jan 2011 17:52:38 +0000 (17:52 +0000)
commit8097531a5cb55c6472118da094dc88caf9be66ac
tree77707f0bc5fe63e08844426ffe878a0191f4faef
parentc5797a945cac4c470f0113fc839c521aab0d799d
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 <sjayaraman@suse.de>
Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_debug.c
fs/cifs/connect.c
fs/cifs/transport.c