diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index d77abe236a67..43fb2aafa528 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -784,6 +784,8 @@ static int cifs_oplock_thread(void * dummyarg) | |||
784 | 784 | ||
785 | oplockThread = current; | 785 | oplockThread = current; |
786 | do { | 786 | do { |
787 | if(try_to_freeze()) | ||
788 | continue; | ||
787 | set_current_state(TASK_INTERRUPTIBLE); | 789 | set_current_state(TASK_INTERRUPTIBLE); |
788 | 790 | ||
789 | schedule_timeout(1*HZ); | 791 | schedule_timeout(1*HZ); |
@@ -848,6 +850,8 @@ static int cifs_dnotify_thread(void * dummyarg) | |||
848 | 850 | ||
849 | dnotifyThread = current; | 851 | dnotifyThread = current; |
850 | do { | 852 | do { |
853 | if(try_to_freeze()) | ||
854 | continue; | ||
851 | set_current_state(TASK_INTERRUPTIBLE); | 855 | set_current_state(TASK_INTERRUPTIBLE); |
852 | schedule_timeout(39*HZ); | 856 | schedule_timeout(39*HZ); |
853 | } while(!signal_pending(current)); | 857 | } while(!signal_pending(current)); |