afs: Log pid with disk cache read errors 16/14416/2
authorAndrew Deason <adeason@sinenomine.net>
Mon, 26 Oct 2020 17:19:19 +0000 (12:19 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 6 Nov 2020 06:18:21 +0000 (01:18 -0500)
commit1caeeea43c038011306dd1c391680c24fc318e3d
tree069796152c9803b6e3800abdaa80c7ce5e3e89db
parent98c1a8751c5d29e45a3839552d495c9616b82118
afs: Log pid with disk cache read errors

Log the current pid (and procname) when we complain about an error
when reading from CacheItems in afs_UFSGetDSlot. These errors can
result in confusing situations, so it can be helpful to know at least
what process saw the error.

Our logic for logging this information is getting a bit large, so also
move this to a new function, LogCacheError.

Change-Id: I3427e736458784df0d516f4182684605e930e128
Reviewed-on: https://gerrit.openafs.org/14416
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/afs_dcache.c