Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163253786
D35034.id105374.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
D35034.id105374.diff
View Options
diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c
--- a/sys/geom/geom_vfs.c
+++ b/sys/geom/geom_vfs.c
@@ -57,6 +57,7 @@
int sc_active;
bool sc_orphaned;
int sc_enxio_active;
+ int sc_enxio_reported;
};
static struct buf_ops __g_vfs_bufops = {
@@ -150,8 +151,13 @@
}
if (sc->sc_enxio_active)
bip->bio_error = ENXIO;
- g_print_bio("g_vfs_done():", bip, "error = %d",
- bip->bio_error);
+ if (bip->bio_error != ENXIO ||
+ atomic_cmpset_int(&sc->sc_enxio_reported, 0, 1)) {
+ g_print_bio("g_vfs_done():", bip, "error = %d%s",
+ bip->bio_error,
+ bip->bio_error != ENXIO ? "" :
+ " supressing further ENXIO");
+ }
}
bp->b_error = bip->bio_error;
bp->b_ioflags = bip->bio_flags;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 11:16 AM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35362338
Default Alt Text
D35034.id105374.diff (746 B)
Attached To
Mode
D35034: g_vfs_done: Only report ENXIO once
Attached
Detach File
Event Timeline
Log In to Comment