Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24392
b: refs/heads/master
c: 1ecac7f
h: refs/heads/master
v: v3
  • Loading branch information
Jun'ichi Nomura authored and Linus Torvalds committed Mar 27, 2006
1 parent be7c99b commit 1270138
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 138728dc96529f20dfe970c470e51885a60e329f
refs/heads/master: 1ecac7fd74f2e5fb06a7719ecba55fb5778a9a47
5 changes: 4 additions & 1 deletion trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ int dm_suspend(struct mapped_device *md, int do_lockfs)
{
struct dm_table *map = NULL;
DECLARE_WAITQUEUE(wait, current);
struct bio *def;
int r = -EINVAL;

down(&md->suspend_lock);
Expand Down Expand Up @@ -1166,9 +1167,11 @@ int dm_suspend(struct mapped_device *md, int do_lockfs)
/* were we interrupted ? */
r = -EINTR;
if (atomic_read(&md->pending)) {
clear_bit(DMF_BLOCK_IO, &md->flags);
def = bio_list_get(&md->deferred);
__flush_deferred_io(md, def);
up_write(&md->io_lock);
unlock_fs(md);
clear_bit(DMF_BLOCK_IO, &md->flags);
goto out;
}
up_write(&md->io_lock);
Expand Down

0 comments on commit 1270138

Please sign in to comment.