Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157053
b: refs/heads/master
c: 5fd1318
h: refs/heads/master
i:
  157051: cd1120b
v: v3
  • Loading branch information
Jan Kara authored and Joel Becker committed Aug 17, 2009
1 parent 1e2d907 commit c8bc815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 60e2ec48665b8495360ca4a6004c5cd52beb2bc1
refs/heads/master: 5fd131893793567c361ae64cbeb28a2a753bbe35
6 changes: 5 additions & 1 deletion trunk/fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,13 +1218,17 @@ static void ocfs2_kill_sb(struct super_block *sb)
{
struct ocfs2_super *osb = OCFS2_SB(sb);

/* Failed mount? */
if (!osb || atomic_read(&osb->vol_state) == VOLUME_DISABLED)
goto out;

/* Prevent further queueing of inode drop events */
spin_lock(&dentry_list_lock);
ocfs2_set_osb_flag(osb, OCFS2_OSB_DROP_DENTRY_LOCK_IMMED);
spin_unlock(&dentry_list_lock);
/* Wait for work to finish and/or remove it */
cancel_work_sync(&osb->dentry_lock_work);

out:
kill_block_super(sb);
}

Expand Down

0 comments on commit c8bc815

Please sign in to comment.