Author: trasz
Date: Sat Apr  1 17:13:00 2017
New Revision: 316365
URL: https://svnweb.freebsd.org/changeset/base/316365

Log:
  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

Modified:
  stable/11/sys/fs/devfs/devfs_vnops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- stable/11/sys/fs/devfs/devfs_vnops.c        Sat Apr  1 17:09:55 2017        
(r316364)
+++ stable/11/sys/fs/devfs/devfs_vnops.c        Sat Apr  1 17:13:00 2017        
(r316365)
@@ -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-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to