Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ede1327e authored by Steve French's avatar Steve French Committed by Linus Torvalds
Browse files

[PATCH] cifs: Add support for suspend



cifsd had been preventing software suspend from completing.

Signed-off-by: default avatar <pavel@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>  lightly modified
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 12f44f46
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);  
+2 −0
Original line number Diff line number Diff line
@@ -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) {