Messages in this thread Patch in this message | | | Date | Wed, 10 Feb 1999 21:22:34 +0100 (CET) | Subject | NFS write gathering: tiny bugfix for nfsroot clients... | From | Trond Myklebust <> |
| |
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/
| |