lkml.org 
[lkml]   [1999]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectNFS write gathering: tiny bugfix for nfsroot clients...
From

Hi everybody,

The following patch fixes an oops that will occur if root kills
off the rpciod daemon while an NFS partition is mounted, and then
somebody proceeds to write to that partition.

This is mainly a 'problem' for people who use nfsroot together with
the 'halt/reboot' scripts in the RedHat distribution. They perform a
'kill -9 -1' right before they write the shutdown message to the wtmp
file.

Everybody else can safely ignore this patch.

Cheers,
Trond

--- linux/fs/nfs/cluster.c-ac5 Sat Feb 6 13:59:26 1999
+++ linux/fs/nfs/cluster.c Wed Feb 10 18:18:56 1999
@@ -221,6 +221,15 @@
inode->i_dev, inode->i_ino,
(long) (rqstart & CLUSTER_MASK));

+ /*
+ * Did somebody recently kill RPCIOD?
+ */
+ if (!cache) {
+ *error = nfs_reqlist_init(NFS_SERVER(inode));
+ cache = NFS_REQUESTLIST(inode);
+ if (!cache)
+ return NULL;
+ }
/* Default error out of memory */
*error = -ENOMEM;

-
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:50    [W:0.027 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site