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
5413e24c
Commit
5413e24c
authored
Mar 15, 2016
by
Paul E. McKenney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation: Sharpen up the no-readers quick quiz
Signed-off-by:
Paul E. McKenney
<
paulmck@linux.vnet.ibm.com
>
parent
6146f8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Documentation/RCU/Design/Requirements/Requirements.html
Documentation/RCU/Design/Requirements/Requirements.html
+8
-5
No files found.
Documentation/RCU/Design/Requirements/Requirements.html
View file @
5413e24c
...
...
@@ -1002,18 +1002,21 @@ obligation to wait for these new readers.
<tr><th>
</th></tr>
<tr><th
align=
"left"
>
Quick Quiz:
</th></tr>
<tr><td>
Suppose that synchronize_rcu() did wait until all readers had completed.
Would the updater be able to rely on this?
Suppose that synchronize_rcu() did wait until
<i>
all
</i>
readers had completed instead of waiting only on
pre-existing readers.
For how long would the updater be able to rely on there
being no readers?
</td></tr>
<tr><th
align=
"left"
>
Answer:
</th></tr>
<tr><td
bgcolor=
"#ffffff"
><font
color=
"ffffff"
>
No
.
For no time at all
.
Even if
<tt>
synchronize_rcu()
</tt>
were to wait until
all readers had completed, a new reader might start immediately after
<tt>
synchronize_rcu()
</tt>
completed.
Therefore, the code following
<tt>
synchronize_rcu()
</tt>
can
not rely on there being no readers
in any case
.
<tt>
synchronize_rcu()
</tt>
can
<i>
never
</i>
rely on there being
no readers
.
</font></td></tr>
<tr><td>
</td></tr>
</table>
...
...
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