afs: Warn about afs_conn overcounts
authorAndrew Deason <adeason@sinenomine.net>
Sun, 14 Sep 2014 19:24:17 +0000 (14:24 -0500)
committerDaria Brashear <shadow@your-file-system.com>
Wed, 14 Jan 2015 15:28:01 +0000 (10:28 -0500)
commitfa5434adf19d040bd194b63993b81263c395fa78
treea6e3aedc0360184ac18e0ade64ffa56f9bad05f1
parent0c89335b5aa7ae3582862596878936dfcbe99bf1
afs: Warn about afs_conn overcounts

Currently we panic if we detect an undercount on an afs_conn
structure, as this is a serious bug and can cause corruption and other
issues. But an overcount is never noticed, until the refCount
overflows and looks negative. Log a warning if the refCount gets
really high, so an administrator has a chance at noticing and
notifying a developer before the machine actually panics.

[kaduk@mit.edu use the %p format specifier, mandated by C89]

Change-Id: Ifc291fc10959e4e1c60115813d82a09e5a65ef75
Reviewed-on: http://gerrit.openafs.org/11465
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
src/afs/afs_conn.c