Skip to content

Commit

Permalink
[PATCH] cifs: Add support for suspend
Browse files Browse the repository at this point in the history
cifsd had been preventing software suspend from completing.

Signed-off-by: pavel@suse.de
Signed-off-by: Steve French <sfrench@us.ibm.com>  lightly modified
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Steve French authored and Linus Torvalds committed Sep 23, 2005
1 parent 12f44f4 commit ede1327
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,8 @@ static int cifs_oplock_thread(void * dummyarg)

oplockThread = current;
do {
if (try_to_freeze())
continue;
set_current_state(TASK_INTERRUPTIBLE);

schedule_timeout(1*HZ);
Expand Down
2 changes: 2 additions & 0 deletions fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
}

while (server->tcpStatus != CifsExiting) {
if (try_to_freeze())
continue;
if (bigbuf == NULL) {
bigbuf = cifs_buf_get();
if(bigbuf == NULL) {
Expand Down

0 comments on commit ede1327

Please sign in to comment.