summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-09-08 12:56:26 +0000
committerattilio <attilio@FreeBSD.org>2011-09-08 12:56:26 +0000
commit5494aebd9759f24281f8a0cfa2065a17ba997533 (patch)
treefc833be579c529eada2aa0565d3869ad2cebefd6 /sys/kern/vfs_bio.c
parent41cd87c13ef2eae05c70bdf24dd18c20d8722a21 (diff)
downloadFreeBSD-src-5494aebd9759f24281f8a0cfa2065a17ba997533.zip
FreeBSD-src-5494aebd9759f24281f8a0cfa2065a17ba997533.tar.gz
Improve the informations reported in case of busy buffers during the shutdown:
- Axe out the SHOW_BUSYBUFS option and uses a tunable for selectively enable/disable it, which is defaulted for not printing anything (0 value) but can be changed for printing (1 value) and be verbose (2 value) - Improves the informations outputed: right now, there is no track of the actual struct buf object or vnode which are referenced by the shutdown process, but it is printed the related struct bufobj object which is not really helpful - Add more verbosity about the state of the struct buf lock and the vnode informations, with the latter to be activated separately by the sysctl Sponsored by: Sandvine Incorporated Reviewed by: emaste, kib Approved by: re (ksmith) MFC after: 10 days
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index a6ad81e..7b5b015 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -4020,7 +4020,7 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
db_printf("\n");
}
db_printf(" ");
- lockmgr_printinfo(&bp->b_lock);
+ BUF_LOCKPRINTINFO(bp);
}
DB_SHOW_COMMAND(lockedbufs, lockedbufs)
OpenPOWER on IntegriCloud