]> git.baikalelectronics.ru Git - kernel.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, 5 Apr 2013 21:03:52 +0000 (17:03 -0400)
commita81700732f5c20b43fe63bed01a734d44275e476
tree07c6185345f59b818e51684104aa2ed99cd15931
parent2c074ee69b9e23c12da70e0c8507ea1f0bc9de05
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