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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to