]> git.michaelhowe.org Git - packages/o/openafs.git/commit
libafs: Rate-limit hard-mount waiting messages
authorAndrew Deason <adeason@sinenomine.net>
Wed, 20 Jul 2011 21:50:52 +0000 (16:50 -0500)
committerDerrick Brashear <shadow@dementix.org>
Sat, 17 Dec 2011 00:30:46 +0000 (16:30 -0800)
commit09fe35b1f3adfd08aa74377d291a4acd638d247b
treee0cf79088757b1292fe9efc3523e14ccf399732e
parent7ebaf1aa6ad316417e1980465f90a91629c1eae6
libafs: Rate-limit hard-mount waiting messages

Limit how often we log "hard-mount waiting for XXX" messages. Without
this, it is possible for a client with hard-mounts enabled to spam the
kernel log rather excessively (in extreme cases this can even panic
the machine on at least some Linux).

To keep things simple, just log approximately one message per volume
per hard-mount interval.

Reviewed-on: http://gerrit.openafs.org/5060
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 530b5ecac51cc7ce61ccddd50868c632c4a47298)

Change-Id: I566aa3d411ff100ccc6afa9a5273fb84e6172dd0
Reviewed-on: http://gerrit.openafs.org/6347
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs.h
src/afs/afs_analyze.c