Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305199
b: refs/heads/master
c: 1a058f5
h: refs/heads/master
i:
  305197: 4befc25
  305195: 54e9073
  305191: 677faf9
  305183: 6b99f65
v: v3
  • Loading branch information
David Teigland committed May 2, 2012
1 parent 8cab15f commit 56402f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 4875647a08e35f77274838d97ca8fa44158d50e2
refs/heads/master: 1a058f5288a74a20d5567a85ab1a04a9de69a212
10 changes: 6 additions & 4 deletions trunk/fs/gfs2/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,7 @@ int gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid)
struct gfs2_jdesc *jd;
int rv;

rv = -ESHUTDOWN;
spin_lock(&sdp->sd_jindex_spin);
if (test_bit(SDF_NORECOVERY, &sdp->sd_flags))
goto out;
rv = -EBUSY;
if (sdp->sd_jdesc->jd_jid == jid)
goto out;
Expand All @@ -396,8 +393,13 @@ static ssize_t recover_store(struct gfs2_sbd *sdp, const char *buf, size_t len)
if (rv != 1)
return -EINVAL;

rv = gfs2_recover_set(sdp, jid);
if (test_bit(SDF_NORECOVERY, &sdp->sd_flags)) {
rv = -ESHUTDOWN;
goto out;
}

rv = gfs2_recover_set(sdp, jid);
out:
return rv ? rv : len;
}

Expand Down

0 comments on commit 56402f8

Please sign in to comment.