Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2003 13:35:28 -0800 (PST)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_cluster.c
Message-ID:  <200303042135.h24LZSZB064526@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2003/03/04 13:35:28 PST

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_cluster.c 
  Log:
   - Hold the buf lock while manipulating and inspecting its fields.
   - Use gbincore() and not incore() so that we can drop the vnode interlock
     as we acquire the buflock.
   - Use GB_LOCK_NOWAIT when getting bufs for read ahead clusters so that we
     don't block on locked bufs.
   - Convert a while loop to a howmany() that will most likely be faster on
     modern processors.  There is another while loop divide that was left
     near by because it is operating on a 64bit int and is most likely faster.
   - Cleanup the cluster_read() code a little to get rid of a goto and make
     the logic clearer.
  
  Tested on:      x86, alpha
  Tested by:      Steve Kargl <sgk@troutmask.apl.washington.edu>
  Reviewd by:     arch
  
  Revision  Changes    Path
  1.131     +70 -56    src/sys/kern/vfs_cluster.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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