[PATCH] cifs: Add support for suspend

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>

authored by Steve French and committed by Linus Torvalds ede1327e 12f44f46

+4
+2
fs/cifs/cifsfs.c
··· 781 782 oplockThread = current; 783 do { 784 set_current_state(TASK_INTERRUPTIBLE); 785 786 schedule_timeout(1*HZ);
··· 781 782 oplockThread = current; 783 do { 784 + if (try_to_freeze()) 785 + continue; 786 set_current_state(TASK_INTERRUPTIBLE); 787 788 schedule_timeout(1*HZ);
+2
fs/cifs/connect.c
··· 344 } 345 346 while (server->tcpStatus != CifsExiting) { 347 if (bigbuf == NULL) { 348 bigbuf = cifs_buf_get(); 349 if(bigbuf == NULL) {
··· 344 } 345 346 while (server->tcpStatus != CifsExiting) { 347 + if (try_to_freeze()) 348 + continue; 349 if (bigbuf == NULL) { 350 bigbuf = cifs_buf_get(); 351 if(bigbuf == NULL) {