Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3c0edea9
Commit
3c0edea9
authored
Nov 01, 2019
by
David Howells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pipe: Remove sync on wake_ups
parent
cefa80ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/pipe.c
fs/pipe.c
+4
-4
No files found.
fs/pipe.c
View file @
3c0edea9
...
@@ -332,7 +332,7 @@ pipe_read(struct kiocb *iocb, struct iov_iter *to)
...
@@ -332,7 +332,7 @@ pipe_read(struct kiocb *iocb, struct iov_iter *to)
do_wakeup
=
1
;
do_wakeup
=
1
;
wake
=
head
-
(
tail
-
1
)
==
pipe
->
max_usage
/
2
;
wake
=
head
-
(
tail
-
1
)
==
pipe
->
max_usage
/
2
;
if
(
wake
)
if
(
wake
)
wake_up_
interruptible_sync_poll_locked
(
wake_up_
locked_poll
(
&
pipe
->
wait
,
EPOLLOUT
|
EPOLLWRNORM
);
&
pipe
->
wait
,
EPOLLOUT
|
EPOLLWRNORM
);
spin_unlock_irq
(
&
pipe
->
wait
.
lock
);
spin_unlock_irq
(
&
pipe
->
wait
.
lock
);
if
(
wake
)
if
(
wake
)
...
@@ -371,7 +371,7 @@ pipe_read(struct kiocb *iocb, struct iov_iter *to)
...
@@ -371,7 +371,7 @@ pipe_read(struct kiocb *iocb, struct iov_iter *to)
/* Signal writers asynchronously that there is more room. */
/* Signal writers asynchronously that there is more room. */
if
(
do_wakeup
)
{
if
(
do_wakeup
)
{
wake_up_interruptible_
sync_
poll
(
&
pipe
->
wait
,
EPOLLOUT
|
EPOLLWRNORM
);
wake_up_interruptible_poll
(
&
pipe
->
wait
,
EPOLLOUT
|
EPOLLWRNORM
);
kill_fasync
(
&
pipe
->
fasync_writers
,
SIGIO
,
POLL_OUT
);
kill_fasync
(
&
pipe
->
fasync_writers
,
SIGIO
,
POLL_OUT
);
}
}
if
(
ret
>
0
)
if
(
ret
>
0
)
...
@@ -477,7 +477,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
...
@@ -477,7 +477,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
* syscall merging.
* syscall merging.
* FIXME! Is this really true?
* FIXME! Is this really true?
*/
*/
wake_up_
interruptible_sync_poll_locked
(
wake_up_
locked_poll
(
&
pipe
->
wait
,
EPOLLIN
|
EPOLLRDNORM
);
&
pipe
->
wait
,
EPOLLIN
|
EPOLLRDNORM
);
spin_unlock_irq
(
&
pipe
->
wait
.
lock
);
spin_unlock_irq
(
&
pipe
->
wait
.
lock
);
...
@@ -531,7 +531,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
...
@@ -531,7 +531,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
out:
out:
__pipe_unlock
(
pipe
);
__pipe_unlock
(
pipe
);
if
(
do_wakeup
)
{
if
(
do_wakeup
)
{
wake_up_interruptible_
sync_
poll
(
&
pipe
->
wait
,
EPOLLIN
|
EPOLLRDNORM
);
wake_up_interruptible_poll
(
&
pipe
->
wait
,
EPOLLIN
|
EPOLLRDNORM
);
kill_fasync
(
&
pipe
->
fasync_readers
,
SIGIO
,
POLL_IN
);
kill_fasync
(
&
pipe
->
fasync_readers
,
SIGIO
,
POLL_IN
);
}
}
if
(
ret
>
0
&&
sb_start_write_trylock
(
file_inode
(
filp
)
->
i_sb
))
{
if
(
ret
>
0
&&
sb_start_write_trylock
(
file_inode
(
filp
)
->
i_sb
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment