svn commit: r229636 - stable/8/sys/kern

John Baldwin jhb at FreeBSD.org
Thu Jan 5 19:53:17 UTC 2012


Author: jhb
Date: Thu Jan  5 19:53:17 2012
New Revision: 229636
URL: http://svn.freebsd.org/changeset/base/229636

Log:
  MFC 228593:
  Fire a kevent if necessary after seeking on a regular file.  This fixes a
  case where a kevent would not fire on a regular file if an application read
  to EOF and then seeked backwards into the file.

Modified:
  stable/8/sys/kern/vfs_syscalls.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/kern/vfs_syscalls.c
==============================================================================
--- stable/8/sys/kern/vfs_syscalls.c	Thu Jan  5 19:53:01 2012	(r229635)
+++ stable/8/sys/kern/vfs_syscalls.c	Thu Jan  5 19:53:17 2012	(r229636)
@@ -1971,6 +1971,7 @@ lseek(td, uap)
 	if (error != 0)
 		goto drop;
 	fp->f_offset = offset;
+	VFS_KNOTE_UNLOCKED(vp, 0);
 	*(off_t *)(td->td_retval) = fp->f_offset;
 drop:
 	fdrop(fp, td);


More information about the svn-src-stable-8 mailing list