Skip to content
Commits on Mar 1, 2009
  1. @kmacy

    multiq step 5:

    kmacy committed
    flowid: allow TCP to track driver furnished flow identifier and pass it down
      to the driver in ip_output to give the driver the option of identifying flows to
      provide connection ordering while using multiple transmit queues
  2. @kmacy

    - fix accidental removal of inp_cred in 186573

    kmacy committed
    - remove duplicate creation of subr_bufring.c in 189199
  3. @kmacy

    multiq step 4:

    kmacy committed
    enable if_transmit: adds if_transmit and if_qflush to struct ifnet to give
      high performance drivers the option of managing their own queues
  4. @kmacy

    multiq step 3:

    kmacy committed
    - if_transmit: add if_transmit and if_qflush to struct ifnet to give
      high performance drivers the option of managing their own queues
  5. @kmacy

    multiq step 2:

    kmacy committed
    - buf_ring: add 'buf_ring', a generic lockless ring-buffer
  6. @kmacy

    multiq step 1:

    kmacy committed
    - atomic_barriers: add atomic barriers to atomic.h on all architectures
  7. @kmacy

    IFC HEAD_fast_net 186573:

    kmacy committed
    cache rtentry in inpcb for connected sockets
Commits on Feb 28, 2009
  1. @trasz

    MFC r188917:

    trasz committed
    Mention disk_gone() in disk(9).
    
    Approved by:	rwatson (mentor)
  2. @trasz

    MFC r188916:

    trasz committed
    Fix a typo and add manpage links to geom(4).
    
    Approved by:	rwatson (mentor)
  3. @trasz

    MFC r187053:

    trasz committed
    Prevent a panic that happens on SMP machines when removing a disk with
    many writes queued up.
    
    Reviewed by:	phk, scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  4. @trasz

    MFC r186188:

    trasz committed
    Implement g_vfs_orphan().  Without it, the filesystem never closes
    the device, which means refcount on periph drivers never drops,
    which means cam_sim_free() never returns, which results in umass
    sleeping there ad infinitum.
    
    Submitted by:	pjd
    Reviewed by:	scottl, pjd
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  5. @trasz

    MFC r188345:

    trasz committed
    Remove an overzealous check.
    
    Submitted by:	das
    Reviewed by:	scottl
    Approved by:	rwatson (mentor, implicit)
    Sponsored by:	FreeBSD Foundation
  6. @trasz

    MFC r187652:

    trasz committed
    Protect against NULL pointer dereference.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  7. @trasz

    MFC r187651:

    trasz committed
    Don't leak memory when alloc fails.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		2908
  8. @trasz

    MFC r187650:

    trasz committed
    Guard against NULL pointer dereference.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		1847
  9. @trasz

    MFC r187649:

    trasz committed
    Guard against NULL pointer dereference.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		130
  10. @trasz

    MFC r187247.

    trasz committed
    Add missing 'break' statement.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		3667
  11. @trasz

    MFC r187245:

    trasz committed
    Fix use after free.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		3712
  12. @trasz

    MFC r187244:

    trasz committed
    Remove unused variable.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		3665
  13. @trasz

    MFC r187243:

    trasz committed
    Add missing 'break' statement.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Found with:	Coverity Prevent(tm)
    CID:		3927
  14. @trasz

    MFC r187028:

    trasz committed
    Don't call destroy_dev(9) with a mutex held.  While here, shuffle
    things around so the periph destructors look alike.  Based on a patch
    by Jaakko Heinonen.
    
    Submitted by:	Jaakko Heinonen
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  15. @trasz

    MFC r186905:

    trasz committed
    Make "kldunload atapicam" return EBUSY instead of deadlocking when a device
    created by atapicam is being kept opened or mounted.  This is probably just
    a temporary solution until we invent something better.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
    Reported by:	Jaakko Heinonen
  16. @trasz

    MFC r186320:

    trasz committed
    Fix cam_sim_free() wakeup condition and add mtx_asserts.
    
    Submitted by:	Christoph Mallon
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  17. @trasz

    MFC r186319:

    trasz committed
    Periph driver fixes, second try.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  18. @trasz

    MFC r186318:

    trasz committed
    Move mtx_assert lower, when we can be sure that the pointer
    to the mutex is valid.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  19. @trasz

    MFC r186185:

    trasz committed
    Add SIM refcounting.  This is slightly different from what DragonFly
    does - in DragonFly, it's cam_sim_release() what actually frees the
    SIM; cam_sim_free does nothing more than calling cam_sim_release().
    Here, we drain in cam_sim_free, waiting for refcount to drop to zero.
    We cannot do the same think DragonFly does, because after cam_sim_free
    returns, client would destroy the sim->mtx, and CAM would trip over
    an initialized mutex.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
  20. @trasz

    MFC r186184:

    trasz committed
    Get rid of dead_sim.  There is no way to make it work - any attempt
    to actually use it would panic on mtx operation, as dead_sim doesn't
    have a proper mutex.  Even if it had a properly initialized mutex,
    it wouldn't have properly locked and owned one.
    
    Reviewed by:	scottl
    Approved by:	rwatson (mentor)
    Sponsored by:	FreeBSD Foundation
Commits on Feb 27, 2009
  1. @bsdjhb

    Catch up to the 6GB KVA changes. The original superpages patches on 7

    bsdjhb committed
    were tested prior to the MFC of the 6GB KVA changes, and I failed to do
    an extra sanity check yesterday.  This should fix the pmap_init() panics.
    
    Pointy hat to:	jhb
Commits on Feb 26, 2009
  1. @bsdjhb

    MFC: Add a stub for pmap_align_superpage() on machines that don't (yet)

    bsdjhb committed
    implement pmap-level support for superpages.
    
    Pointy hat to:	jhb
  2. @bsdjhb
  3. @bsdjhb

    MFC: Add a new ioctl to fetch details about an individual BAR of a de…

    bsdjhb committed
    …vice
    
    and add support for displaying BAR details via a new pciconf flag.
  4. @bsdjhb
  5. @bsdjhb

    MFC: Add support for "superpages" on amd64 and i386. This includes ad…

    bsdjhb committed
    …ding the
    
    superpage reservation system to the machine-independent VM system as well as
    changes to the pmap code for amd64 and i386 to support superpages.
    
    Reviewed by:	alc
    Tested by:	ps
Commits on Feb 25, 2009
  1. @emaste

    MFC r177490 - diff reduction w/ head.

    emaste committed
      Use linker set to collection all target operations.
  2. @rwatson

    Merge r188485 from head to stable/7:

    rwatson committed
      Modify fdcopy() so that, during fork(2), it won't copy file descriptors
      from the parent to the child process if they have an operation vector
      of &badfileops.  This narrows a set of races involving system calls that
      allocate a new file descriptor, potentially block for some extended
      period, and then return the file descriptor, when invoked by a threaded
      program that concurrently invokes fork(2).  Similar approches are used
      in both Solaris and Linux, and the wideness of this race was introduced
      in FreeBSD when we moved to a more optimistic implementation of
      accept(2) in order to simplify locking.
    
      A small race necessarily remains because the fork(2) might occur after
      the finit() in accept(2) but before the system call has returned, but
      that appears unavoidable using current APIs.  However, this race is
      vastly narrower.
    
      The fix can be validated using the newfileops_on_fork regression test.
    
      PR:           kern/130348
      Reported by:  Ivan Shcheklein <shcheklein at gmail dot com>
      Reviewed by:  jhb, kib
Something went wrong with that request. Please try again.