Commit 4b84bbe0 authored by Juan Quintela's avatar Juan Quintela Committed by Linus Torvalds

[PATCH] : Grammatical fixes

  Documentation/porting: s/are/and/
  Documentation/directory-locking: s/that means// was repeated
parent 69be6c8e
...@@ -80,14 +80,14 @@ would have a contended child and we had assumed that no object is its ...@@ -80,14 +80,14 @@ would have a contended child and we had assumed that no object is its
own descendent. Moreover, there is exactly one cross-directory rename own descendent. Moreover, there is exactly one cross-directory rename
(see above). (see above).
Consider the object blocking the cross-directory rename. One of Consider the object blocking the cross-directory rename. One
its descendents is locked by cross-directory rename (otherwise we would again of its descendents is locked by cross-directory rename (otherwise we
have an infinite set of of contended objects). But that means that means would again have an infinite set of of contended objects). But that
that cross-directory rename is taking locks out of order. Due to (2) the means that cross-directory rename is taking locks out of order. Due
order hadn't changed since we had acquired filesystem lock. But locking to (2) the order hadn't changed since we had acquired filesystem lock.
rules for cross-directory rename guarantee that we do not try to acquire But locking rules for cross-directory rename guarantee that we do not
lock on descendent before the lock on ancestor. Contradiction. I.e. try to acquire lock on descendent before the lock on ancestor.
deadlock is impossible. Q.E.D. Contradiction. I.e. deadlock is impossible. Q.E.D.
These operations are guaranteed to avoid loop creation. Indeed, These operations are guaranteed to avoid loop creation. Indeed,
......
...@@ -69,7 +69,7 @@ Locking change: ->s_vfs_rename_sem is taken only by cross-directory renames. ...@@ -69,7 +69,7 @@ Locking change: ->s_vfs_rename_sem is taken only by cross-directory renames.
Most likely there is no need to change anything, but if you relied on Most likely there is no need to change anything, but if you relied on
global exclusion between renames for some internal purpose - you need to global exclusion between renames for some internal purpose - you need to
change your internal locking. Otherwise exclusion warranties remain the change your internal locking. Otherwise exclusion warranties remain the
same (i.e. parents are victim are locked, etc.). same (i.e. parents and victim are locked, etc.).
--- ---
[informational] [informational]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment