Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323273
b: refs/heads/master
c: 07a7904
h: refs/heads/master
i:
  323271: ca4b0db
v: v3
  • Loading branch information
Bob Peterson authored and Steven Whitehouse committed Sep 24, 2012
1 parent 8ac7fbd commit 4e61c29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 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: 4abb6ad9eae0aebfcec4f188a408447cc4ea1cb4
refs/heads/master: 07a790494260e102eb42840537af82e84d2ab766
23 changes: 9 additions & 14 deletions trunk/fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,14 @@ static int gfs2_glock_demote_wait(void *word)
return 0;
}

static void wait_on_holder(struct gfs2_holder *gh)
/**
* gfs2_glock_wait - wait on a glock acquisition
* @gh: the glock holder
*
* Returns: 0 on success
*/

int gfs2_glock_wait(struct gfs2_holder *gh)
{
unsigned long time1 = jiffies;

Expand All @@ -880,6 +887,7 @@ static void wait_on_holder(struct gfs2_holder *gh)
gh->gh_gl->gl_hold_time = min(gh->gh_gl->gl_hold_time +
GL_GLOCK_HOLD_INCR,
GL_GLOCK_MAX_HOLD);
return gh->gh_error;
}

static void wait_on_demote(struct gfs2_glock *gl)
Expand Down Expand Up @@ -915,19 +923,6 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state,
trace_gfs2_demote_rq(gl);
}

/**
* gfs2_glock_wait - wait on a glock acquisition
* @gh: the glock holder
*
* Returns: 0 on success
*/

int gfs2_glock_wait(struct gfs2_holder *gh)
{
wait_on_holder(gh);
return gh->gh_error;
}

void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...)
{
struct va_format vaf;
Expand Down

0 comments on commit 4e61c29

Please sign in to comment.