Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57789
b: refs/heads/master
c: 02676e5
h: refs/heads/master
i:
  57787: fe1d93c
v: v3
  • Loading branch information
Jens Axboe committed Jun 15, 2007
1 parent 3e860b7 commit 3379358
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 00de00bdad278783b3664ad2969954a707f5944a
refs/heads/master: 02676e5aee271c1f20d7d44249d26741aef1e846
13 changes: 7 additions & 6 deletions trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,15 @@ static ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
pipe->waiting_writers--;
}

if (pipe->inode)
if (pipe->inode) {
mutex_unlock(&pipe->inode->i_mutex);

if (do_wakeup) {
smp_mb();
if (waitqueue_active(&pipe->wait))
wake_up_interruptible(&pipe->wait);
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
if (do_wakeup) {
smp_mb();
if (waitqueue_active(&pipe->wait))
wake_up_interruptible(&pipe->wait);
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
}
}

while (page_nr < spd_pages)
Expand Down

0 comments on commit 3379358

Please sign in to comment.