Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jul 1995 14:24:12 -0700
From:      Matt Dillon <root@best.com>
To:        bugs@freebsd.org
Subject:   That NFS bug
Message-ID:  <199507082124.OAA08945@blob.best.net>

next in thread | raw e-mail | index | archive | help
    Appears to be due to a degenerate condition in the nfs/nfs_bio.c
    code.

    You have to add the conditional if (bp->b_dirtyoff == bp->b_dirtyend)
    to it below, around line 574.

    I *think* that fixes the problem, but cannot be positive... will have
    to see if the machine crashes again with the panic discussed in my
    last email.

                if (bp->b_dirtyend > 0) {
                        bp->b_dirtyoff = min(on, bp->b_dirtyoff);
                        bp->b_dirtyend = max((on + n), bp->b_dirtyend);
                } else {            
                        bp->b_dirtyoff = on;
                        bp->b_dirtyend = on + n; 
                }

/* ADD ME */
                if (bp->b_dirtyoff == bp->b_dirtyend) 
                        bp->b_dirtyoff = bp->b_dirtyend = 0;
/* ADD ME */
                





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507082124.OAA08945>