Messages in this thread Patch in this message | | | Date | Fri, 6 Nov 1998 17:28:13 +0000 (/etc/localtime) | From | "Matthew G. Marsh" <> | 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/
| |