Deleted Added
full compact
nfs_nfsiod.c (57178) nfs_nfsiod.c (58345)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
37 * $FreeBSD: head/sys/nfsclient/nfs_nfsiod.c 57178 2000-02-13 03:32:07Z peter $
37 * $FreeBSD: head/sys/nfsclient/nfs_nfsiod.c 58345 2000-03-20 10:44:49Z phk $
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/sysproto.h>
43#include <sys/kernel.h>
44#include <sys/sysctl.h>
45#include <sys/file.h>

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

956 while ((bp = nmp->nm_bufq.tqh_first) != NULL) {
957 /* Take one off the front of the list */
958 TAILQ_REMOVE(&nmp->nm_bufq, bp, b_freelist);
959 nmp->nm_bufqlen--;
960 if (nmp->nm_bufqwant && nmp->nm_bufqlen <= nfs_numasync) {
961 nmp->nm_bufqwant = FALSE;
962 wakeup(&nmp->nm_bufq);
963 }
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/sysproto.h>
43#include <sys/kernel.h>
44#include <sys/sysctl.h>
45#include <sys/file.h>

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

956 while ((bp = nmp->nm_bufq.tqh_first) != NULL) {
957 /* Take one off the front of the list */
958 TAILQ_REMOVE(&nmp->nm_bufq, bp, b_freelist);
959 nmp->nm_bufqlen--;
960 if (nmp->nm_bufqwant && nmp->nm_bufqlen <= nfs_numasync) {
961 nmp->nm_bufqwant = FALSE;
962 wakeup(&nmp->nm_bufq);
963 }
964 if (bp->b_flags & B_READ)
964 if (bp->b_iocmd == BIO_READ)
965 (void) nfs_doio(bp, bp->b_rcred, (struct proc *)0);
966 else
967 (void) nfs_doio(bp, bp->b_wcred, (struct proc *)0);
968 /*
969 * If there are more than one iod on this mount, then defect
970 * so that the iods can be shared out fairly between the mounts
971 */
972 if (nfs_defect && nmp->nm_bufqiods > 1) {

--- 215 unchanged lines hidden ---
965 (void) nfs_doio(bp, bp->b_rcred, (struct proc *)0);
966 else
967 (void) nfs_doio(bp, bp->b_wcred, (struct proc *)0);
968 /*
969 * If there are more than one iod on this mount, then defect
970 * so that the iods can be shared out fairly between the mounts
971 */
972 if (nfs_defect && nmp->nm_bufqiods > 1) {

--- 215 unchanged lines hidden ---