[4597] in Athena Bugs
patch for ufs_inode.c (NFS server panic problem)
daemon@ATHENA.MIT.EDU (John T Kohl)
Thu Mar 22 14:29:50 1990
Date: Thu, 22 Mar 90 14:29:39 -0500
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
In-Reply-To: [4489]
Here's a patch which should fix the problem John Carr pointed out with
panic's in some UFS code. This patch is applicable to both VAX and RT:
*** /source/bsd-4.3/vax/sys/ufs/ufs_inode.c Wed Jan 14 16:12:11 1987
--- ufs_inode.c Thu Mar 22 14:26:10 1990
***************
*** 195,205 ****
*/
remque(ip);
insque(ip, ih);
#ifdef QUOTA
dqrele(ip->i_dquot);
ip->i_dquot = NULL;
#endif
- ip->i_flag = ILOCKED | IREF;
#ifdef ITRACE
itrace(ip, caller(), 1);
timeout(ilpanic, ip, 30*hz);
--- 195,205 ----
*/
remque(ip);
insque(ip, ih);
+ ip->i_flag = ILOCKED | IREF;
#ifdef QUOTA
dqrele(ip->i_dquot);
ip->i_dquot = NULL;
#endif
#ifdef ITRACE
itrace(ip, caller(), 1);
timeout(ilpanic, ip, 30*hz);