From: Greg Banks Date: Mon, 2 Oct 2006 09:17:57 +0000 (-0700) Subject: [PATCH] knfsd: test and set SK_BUSY atomically X-Git-Tag: v2.6.19-rc1~428 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c081a0c7cfe42adf8e8b9c2b8d0b2ec7f47603e8;p=pandora-kernel.git [PATCH] knfsd: test and set SK_BUSY atomically The SK_BUSY bit in svc_sock->sk_flags ensures that we do not attempt to enqueue a socket twice. Currently, setting and clearing the bit is protected by svc_serv->sv_lock. As I intend to reduce the data that the lock protects so it's not held when svc_sock_enqueue() tests and sets SK_BUSY, that test and set needs to be atomic. Signed-off-by: Greg Banks Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed