summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2017-04-01 17:13:00 +0000
committertrasz <trasz@FreeBSD.org>2017-04-01 17:13:00 +0000
commite6bbb571d9bf61b94d37078560ea8f67a290472e (patch)
tree5100bf5eedfa367ed5041760cfe45db763285990 /sys/fs/devfs
parent7bb75a761d4016f3ec2acbfc78a64206dfe3e9c4 (diff)
downloadFreeBSD-src-e6bbb571d9bf61b94d37078560ea8f67a290472e.zip
FreeBSD-src-e6bbb571d9bf61b94d37078560ea8f67a290472e.tar.gz
MFC r313994:
Change the "devfs_fsync: vop_stdfsync failed" from panic to a printf. It's not a proper fix, but should be better than what we have now. Since it got broken some six months ago it results in an incredibly annoying and trivially reproducible panic every time eg an USB disk gets disconnected. Sponsored by: DARPA, AFRL
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index e90918f..90f2197 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -693,7 +693,7 @@ devfs_fsync(struct vop_fsync_args *ap)
error = vop_stdfsync(ap);
if (bo->bo_dirty.bv_cnt != 0 || error != 0)
- panic("devfs_fsync: vop_stdfsync failed.");
+ printf("devfs_fsync: vop_stdfsync failed.");
}
return (0);
OpenPOWER on IntegriCloud