svn commit: r317348 - head/sys/kern

Edward Tomasz Napierala trasz at FreeBSD.org
Sun Apr 23 22:20:27 UTC 2017


Author: trasz
Date: Sun Apr 23 22:20:25 2017
New Revision: 317348
URL: https://svnweb.freebsd.org/changeset/base/317348

Log:
  Make it possible to terminate "show lockedbufs" by pressing "q".
  
  MFC after:	2 weeks

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Sun Apr 23 21:58:17 2017	(r317347)
+++ head/sys/kern/vfs_bio.c	Sun Apr 23 22:20:25 2017	(r317348)
@@ -4950,6 +4950,8 @@ DB_SHOW_COMMAND(lockedbufs, lockedbufs)
 		if (BUF_ISLOCKED(bp)) {
 			db_show_buffer((uintptr_t)bp, 1, 0, NULL);
 			db_printf("\n");
+			if (db_pager_quit)
+				break;
 		}
 	}
 }


More information about the svn-src-head mailing list