]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfs: allow the v4.1 callback thread to freeze
authorJeff Layton <jlayton@redhat.com>
Mon, 25 Mar 2013 11:59:57 +0000 (07:59 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 29 Mar 2013 19:49:56 +0000 (15:49 -0400)
commit367f84356afd5ac1c8d403d09fd2d687cfe814eb
tree2804e0e54c9e5031527e613173194d6641248305
parent35463d1b3008449e07c9ae091703805031f99453
nfs: allow the v4.1 callback thread to freeze

The v4.1 callback thread has set_freezable() at the top, but it doesn't
ever try to freeze within the loop. Have it call try_to_freeze() at the
top of the loop. If a freeze event occurs, recheck kthread_should_stop()
after thawing.

Reported-by: Yanchuan Nian <ycnian@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/callback.c