Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168833
b: refs/heads/master
c: d461d26
h: refs/heads/master
i:
  168831: ccaaac7
v: v3
  • Loading branch information
David Howells committed Nov 19, 2009
1 parent e81037b commit 8241c8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2175bb06dc6cf2af9c098a1770561f9e63edae4e
refs/heads/master: d461d26dde901b0523c46b0317e7fccf574a3933
17 changes: 12 additions & 5 deletions trunk/fs/fscache/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ static inline void fscache_done_parent_op(struct fscache_object *object)
static void fscache_object_state_machine(struct fscache_object *object)
{
enum fscache_object_state new_state;
struct fscache_cookie *cookie;

ASSERT(object != NULL);

Expand Down Expand Up @@ -158,11 +159,17 @@ static void fscache_object_state_machine(struct fscache_object *object)

spin_lock(&object->lock);
object->state = FSCACHE_OBJECT_DYING;
if (object->cookie &&
test_and_clear_bit(FSCACHE_COOKIE_CREATING,
&object->cookie->flags))
wake_up_bit(&object->cookie->flags,
FSCACHE_COOKIE_CREATING);
cookie = object->cookie;
if (cookie) {
if (test_and_clear_bit(FSCACHE_COOKIE_LOOKING_UP,
&cookie->flags))
wake_up_bit(&cookie->flags,
FSCACHE_COOKIE_LOOKING_UP);
if (test_and_clear_bit(FSCACHE_COOKIE_CREATING,
&cookie->flags))
wake_up_bit(&cookie->flags,
FSCACHE_COOKIE_CREATING);
}
spin_unlock(&object->lock);

fscache_done_parent_op(object);
Expand Down

0 comments on commit 8241c8b

Please sign in to comment.