]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] knfsd: make nlmclnt_next_cookie SMP safe
authorOlaf Kirch <okir@suse.de>
Wed, 4 Oct 2006 09:16:02 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:17 +0000 (07:55 -0700)
commit031d869d0e0be18cfe35526be5608225b8f0a7be
treeb9b8445bec58d268feaa2efb61da5133ffcc2093
parentabd1f50094cad9dff6d68ada98b495549f52fc30
[PATCH] knfsd: make nlmclnt_next_cookie SMP safe

The way we incremented the NLM cookie in nlmclnt_next_cookie was not thread
safe.  This patch changes the counter to an atomic_t

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/lockd/clntproc.c
include/linux/lockd/lockd.h