cvs commit: src/sys/geom geom_io.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Aug 11 05:04:36 PDT 2004


pjd         2004-08-11 12:04:35 UTC

  FreeBSD src repository

  Modified files:
    sys/geom             geom_io.c 
  Log:
  When sending request once again because of ENOMEM, reset bio_children
  and bio_inbed fields to 0. Without this change we can end up with
  I/O leakage in some rare situations.
  I tested this change by putting failure probability mechanism simlar
  to this used in NOP class into g_clone_bio(9) function, so it was
  able to return NULL with the given probability.
  
  Discussed with: phk
  
  Revision  Changes    Path
  1.57      +2 -0      src/sys/geom/geom_io.c


More information about the cvs-src mailing list