]> git.baikalelectronics.ru Git - kernel.git/commit
FS-Cache: Actually requeue an object when requested
authorDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:11:48 +0000 (18:11 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:11:48 +0000 (18:11 +0000)
commitee5c8501bfe272becfe7443f1d26612e6e4907de
tree5eb855730adfa903abae29a9a20a78f1cfe597af
parentbba5e8535eb198124f7b3fefc2e56ba81c8e2033
FS-Cache: Actually requeue an object when requested

FS-Cache objects have an FSCACHE_OBJECT_EV_REQUEUE event that can theoretically
be raised to ask the state machine to requeue the object for further processing
before the work function returns to the slow-work facility.

However, fscache_object_work_execute() was clearing that bit before checking
the event mask to see whether the object has any pending events that require it
to be requeued immediately.

Instead, the bit should be cleared after the check and enqueue.

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