--- linux-2.4.0-test10-pre5/fs/fcntl.c Sun Oct 15 01:27:45 2000 +++ linux-akpm/fs/fcntl.c Fri Nov 3 20:42:47 2000 @@ -254,11 +254,15 @@ unlock_kernel(); break; case F_GETLK: + lock_kernel(); err = fcntl_getlk(fd, (struct flock *) arg); + unlock_kernel(); break; case F_SETLK: case F_SETLKW: + lock_kernel(); err = fcntl_setlk(fd, cmd, (struct flock *) arg); + unlock_kernel(); break; case F_GETOWN: /*