]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs: Don't busy-wait on SIGKILL in __nfs_iocounter_wait
authorDavid Jeffery <djeffery@redhat.com>
Tue, 5 Aug 2014 15:19:42 +0000 (11:19 -0400)
committerJiri Slaby <jslaby@suse.cz>
Fri, 17 Oct 2014 07:21:08 +0000 (09:21 +0200)
commitf8af8eeb8306a965973c3061630d6975cab5e76c
tree97222c7881dabdf903054ca7df900a4902814da0
parent645ccc08110dd0f49c2d94e58f26d567921d5a5f
nfs: Don't busy-wait on SIGKILL in __nfs_iocounter_wait

commit 92a56555bd576c61b27a5cab9f38a33a1e9a1df5 upstream.

If a SIGKILL is sent to a task waiting in __nfs_iocounter_wait,
it will busy-wait or soft lockup in its while loop.
nfs_wait_bit_killable won't sleep, and the loop won't exit on
the error return.

Stop the busy-wait by breaking out of the loop when
nfs_wait_bit_killable returns an error.

Signed-off-by: David Jeffery <djeffery@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Neil Brown <nfbrown@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfs/pagelist.c