From: David Howells Date: Tue, 23 Jul 2013 15:49:24 +0000 (+0100) Subject: Fix __wait_on_atomic_t() to call the action func if the counter != 0 X-Git-Tag: v3.11-rc3~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42577ca8c3616baaafdd8f167b2e1fb959026081;p=pandora-kernel.git Fix __wait_on_atomic_t() to call the action func if the counter != 0 Fix __wait_on_atomic_t() so that it calls the action func if the counter != 0 rather than if the counter is 0 so as to be analogous to __wait_on_bit(). Thanks to Yacine who found this by visual inspection. This will affect FS-Cache in that it will could fail to sleep correctly when trying to clean up after a netfs cookie is withdrawn. Reported-by: Yacine Belkadi Signed-off-by: David Howells Reviewed-by: Jeff Layton cc: Milosz Tanski Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed