]> git.baikalelectronics.ru Git - kernel.git/commit
CacheFiles: Better showing of debugging information in active object problems
authorDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:12:02 +0000 (18:12 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:12:02 +0000 (18:12 +0000)
commit74041e0444a56eba75768f91e0d35681ad7228cf
treebf8451f0d9a95db14ed1ebda50d701f4f387c0d8
parentf1d28d05cc9b855009f720ad743c4599296a84f3
CacheFiles: Better showing of debugging information in active object problems

Show more debugging information if cachefiles_mark_object_active() is asked to
activate an active object.

This may happen, for instance, if the netfs tries to register an object with
the same key multiple times.

The code is changed to (a) get the appropriate object lock to protect the
cookie pointer whilst we dereference it, and (b) get and display the cookie key
if available.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/cachefiles/namei.c