Deleted Added
full compact
vfs_aio.c (72082) vfs_aio.c (72200)
1/*
2 * Copyright (c) 1997 John S. Dyson. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. John S. Dyson's name may not be used to endorse or promote products
10 * derived from this software without specific prior written permission.
11 *
12 * DISCLAIMER: This code isn't warranted to do anything useful. Anything
13 * bad that happens because of using this software isn't the responsibility
14 * of the author. This software is distributed AS-IS.
15 *
1/*
2 * Copyright (c) 1997 John S. Dyson. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. John S. Dyson's name may not be used to endorse or promote products
10 * derived from this software without specific prior written permission.
11 *
12 * DISCLAIMER: This code isn't warranted to do anything useful. Anything
13 * bad that happens because of using this software isn't the responsibility
14 * of the author. This software is distributed AS-IS.
15 *
16 * $FreeBSD: head/sys/kern/vfs_aio.c 72082 2001-02-06 09:25:10Z asmodai $
16 * $FreeBSD: head/sys/kern/vfs_aio.c 72200 2001-02-09 06:11:45Z bmilekic $
17 */
18
19/*
20 * This file contains support for the POSIX 1003.1B AIO/LIO facility.
21 */
22
23#include <sys/param.h>
24#include <sys/systm.h>

--- 608 unchanged lines hidden (view full) ---

633 struct aio_liojob *lj;
634 struct aiocb *cb;
635 struct aiocblist *aiocbe;
636 struct aioproclist *aiop;
637 struct kaioinfo *ki;
638 struct proc *curcp, *mycp, *userp;
639 struct vmspace *myvm, *tmpvm;
640
17 */
18
19/*
20 * This file contains support for the POSIX 1003.1B AIO/LIO facility.
21 */
22
23#include <sys/param.h>
24#include <sys/systm.h>

--- 608 unchanged lines hidden (view full) ---

633 struct aio_liojob *lj;
634 struct aiocb *cb;
635 struct aiocblist *aiocbe;
636 struct aioproclist *aiop;
637 struct kaioinfo *ki;
638 struct proc *curcp, *mycp, *userp;
639 struct vmspace *myvm, *tmpvm;
640
641 mtx_enter(&Giant, MTX_DEF);
641 mtx_lock(&Giant);
642 /*
643 * Local copies of curproc (cp) and vmspace (myvm)
644 */
645 mycp = curproc;
646 myvm = mycp->p_vmspace;
647
648 if (mycp->p_textvp) {
649 vrele(mycp->p_textvp);

--- 1769 unchanged lines hidden ---
642 /*
643 * Local copies of curproc (cp) and vmspace (myvm)
644 */
645 mycp = curproc;
646 myvm = mycp->p_vmspace;
647
648 if (mycp->p_textvp) {
649 vrele(mycp->p_textvp);

--- 1769 unchanged lines hidden ---