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