Author: trasz
Date: Wed Feb 15 16:52:21 2017
New Revision: 313775
URL: https://svnweb.freebsd.org/changeset/base/313775

Log:
  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.
  
  MFC after:    2 weeks
  Sponsored by: DARPA, AFRL

Modified:
  head/sys/fs/devfs/devfs_vnops.c

Modified: head/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vnops.c     Wed Feb 15 15:32:29 2017        
(r313774)
+++ head/sys/fs/devfs/devfs_vnops.c     Wed Feb 15 16:52:21 2017        
(r313775)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to