lkml.org 
[lkml]   [1998]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] linux/fs/ncpfs/sock.c (CheckFirst Please)

Hi - I think this is a working patch for fs/ncpfs/sock.c for the
current->timeout change against 127-7. Please check it first especially
the line that has "if (!schedule_timeout(0)) {" as I am not positive that
is correct for that code sequence.


--- linux/fs/ncpfs/sock.127-7 Fri Nov 6 11:13:08 1998
+++ linux/fs/ncpfs/sock.c Fri Nov 6 11:16:42 1998
@@ -182,17 +182,16 @@
}
timeout = max_timeout;
}
- current->timeout = jiffies + timeout;
- schedule();
+ schedule_timeout(timeout);
remove_wait_queue(entry.wait_address, &entry.wait);
fput(file);
current->state = TASK_RUNNING;
if (signal_pending(current)) {
- current->timeout = 0;
+ schedule_timeout(0);
result = -ERESTARTSYS;
break;
}
- if (!current->timeout) {
+ if (!schedule_timeout(timeout)) {
if (n < retrans)
continue;
if (server->m.flags & NCP_MOUNT_SOFT) {
@@ -209,7 +208,7 @@
major_timeout_seen = 1;
continue;
} else
- current->timeout = 0;
+ schedule_timeout(0);
} else if (wait_table.nr) {
remove_wait_queue(entry.wait_address, &entry.wait);
fput(file);
*** END PATCH ***

--------------------------------------------------
Matthew G. Marsh, President
Paktronix Systems LLC
1506 North 59th Street
Omaha NE 68104
Phone: (402) 932-7250
Email: mgm@paktronix.com
WWW: http://www.paktronix.com
--------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.093 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site