svn commit: r304738 - stable/11/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Aug 24 09:18:39 UTC 2016


Author: kib
Date: Wed Aug 24 09:18:38 2016
New Revision: 304738
URL: https://svnweb.freebsd.org/changeset/base/304738

Log:
  MFC r304286:
  Remove duplicated code.

Modified:
  stable/11/sys/kern/vfs_aio.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/vfs_aio.c
==============================================================================
--- stable/11/sys/kern/vfs_aio.c	Wed Aug 24 07:50:28 2016	(r304737)
+++ stable/11/sys/kern/vfs_aio.c	Wed Aug 24 09:18:38 2016	(r304738)
@@ -1441,7 +1441,7 @@ static struct aiocb_ops aiocb_ops_osigev
  */
 int
 aio_aqueue(struct thread *td, struct aiocb *ujob, struct aioliojob *lj,
-	int type, struct aiocb_ops *ops)
+    int type, struct aiocb_ops *ops)
 {
 	struct proc *p = td->td_proc;
 	cap_rights_t rights;
@@ -2476,14 +2476,9 @@ static int
 kern_aio_fsync(struct thread *td, int op, struct aiocb *ujob,
     struct aiocb_ops *ops)
 {
-	struct proc *p = td->td_proc;
-	struct kaioinfo *ki;
 
 	if (op != O_SYNC) /* XXX lack of O_DSYNC */
 		return (EINVAL);
-	ki = p->p_aioinfo;
-	if (ki == NULL)
-		aio_init_aioinfo(p);
 	return (aio_aqueue(td, ujob, NULL, LIO_SYNC, ops));
 }
 


More information about the svn-src-all mailing list