Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2003 14:20:57 -0700 (PDT)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/geom/bde g_bde_work.c
Message-ID:  <200304252120.h3PLKvNb035837@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2003/04/25 14:20:57 PDT

  FreeBSD src repository

  Modified files:
    sys/geom/bde         g_bde_work.c 
  Log:
  Fix a problem and slightly improve the ENOMEM handling:
  
  Give up the entire bio as soon as we detect a problem.
  
  When we detect a problem, give up the bio by contributing the
  remainder with ENOMEM, rather than kicking the bio back right
  away.
  
  If we failed on a non-first iteration we previously could end up
  modifying fields in the bio after we delivered it.  This could
  account for memory corruption (none directly reported) on machines
  with GBDE.
  
  Revision  Changes    Path
  1.11      +12 -11    src/sys/geom/bde/g_bde_work.c



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