Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242290
b: refs/heads/master
c: 4ee2491
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Mar 17, 2011
1 parent 584ff78 commit f7e981d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b6096a65f99a89dfd8328c4e469e7b53b3ae04a
refs/heads/master: 4ee2491ed8569f370bf4c1a4c046a6efb8032bd2
6 changes: 6 additions & 0 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,10 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list)
struct list_head tmp;
struct address_space *mapping;
int err = 0, err2;
struct blk_plug plug;

INIT_LIST_HEAD(&tmp);
blk_start_plug(&plug);

spin_lock(lock);
while (!list_empty(list)) {
Expand Down Expand Up @@ -781,6 +783,10 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list)
}
}

spin_unlock(lock);
blk_finish_plug(&plug);
spin_lock(lock);

while (!list_empty(&tmp)) {
bh = BH_ENTRY(tmp.prev);
get_bh(bh);
Expand Down

0 comments on commit f7e981d

Please sign in to comment.