Page MenuHomeFreeBSD

D57510.1795982011.diff
No OneTemporary

Authored By
Unknown
Size
737 B
Referenced Files
None
Subscribers
None

D57510.1795982011.diff

diff --git a/sys/geom/cache/g_cache.c b/sys/geom/cache/g_cache.c
--- a/sys/geom/cache/g_cache.c
+++ b/sys/geom/cache/g_cache.c
@@ -198,7 +198,15 @@
g_io_deliver(bp, bp->bio_error);
}
- if (dp->d_flags & D_FLAG_USED) {
+ /*
+ * If the descriptor has been invalidated, do not touch the used list:
+ * g_cache_invalidate() has already pulled it off (if it was on it) and
+ * cleared D_FLAG_USED, and g_cache_done() will free it once all
+ * waiting bios have been delivered.
+ */
+ if (dp->d_flags & D_FLAG_INVALID) {
+ /* nothing */
+ } else if (dp->d_flags & D_FLAG_USED) {
TAILQ_REMOVE(&sc->sc_usedlist, dp, d_used);
TAILQ_INSERT_TAIL(&sc->sc_usedlist, dp, d_used);
} else if (OFF2BNO(off + len, sc) > dp->d_bno) {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 7:53 PM (15 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42095572
Default Alt Text
D57510.1795982011.diff (737 B)

Event Timeline