mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-03 21:01:50 +00:00
[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>
This commit is contained in:
parent
12f44f46bc
commit
ede1327ea4
2 changed files with 4 additions and 0 deletions
|
@ -781,6 +781,8 @@ static int cifs_oplock_thread(void * dummyarg)
|
||||||
|
|
||||||
oplockThread = current;
|
oplockThread = current;
|
||||||
do {
|
do {
|
||||||
|
if (try_to_freeze())
|
||||||
|
continue;
|
||||||
set_current_state(TASK_INTERRUPTIBLE);
|
set_current_state(TASK_INTERRUPTIBLE);
|
||||||
|
|
||||||
schedule_timeout(1*HZ);
|
schedule_timeout(1*HZ);
|
||||||
|
|
|
@ -344,6 +344,8 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
|
||||||
}
|
}
|
||||||
|
|
||||||
while (server->tcpStatus != CifsExiting) {
|
while (server->tcpStatus != CifsExiting) {
|
||||||
|
if (try_to_freeze())
|
||||||
|
continue;
|
||||||
if (bigbuf == NULL) {
|
if (bigbuf == NULL) {
|
||||||
bigbuf = cifs_buf_get();
|
bigbuf = cifs_buf_get();
|
||||||
if(bigbuf == NULL) {
|
if(bigbuf == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue