Documentation: Fix up docs still talking about i_sem

.. it got changed to 'i_mutex' some time ago.

Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Josef 'Jeff' Sipek and committed by Linus Torvalds c2b38989 8f53b6fc

+7 -6
+3 -2
Documentation/filesystems/directory-locking
··· 1 Locking scheme used for directory operations is based on two 2 - kinds of locks - per-inode (->i_sem) and per-filesystem (->s_vfs_rename_sem). 3 4 For our purposes all operations fall in 5 classes: 5 ··· 64 attempt to acquire some lock and already holds at least one lock. Let's 65 consider the set of contended locks. First of all, filesystem lock is 66 not contended, since any process blocked on it is not holding any locks. 67 - Thus all processes are blocked on ->i_sem. 68 69 Non-directory objects are not contended due to (3). Thus link 70 creation can't be a part of deadlock - it can't be blocked on source
··· 1 Locking scheme used for directory operations is based on two 2 + kinds of locks - per-inode (->i_mutex) and per-filesystem 3 + (->s_vfs_rename_mutex). 4 5 For our purposes all operations fall in 5 classes: 6 ··· 63 attempt to acquire some lock and already holds at least one lock. Let's 64 consider the set of contended locks. First of all, filesystem lock is 65 not contended, since any process blocked on it is not holding any locks. 66 + Thus all processes are blocked on ->i_mutex. 67 68 Non-directory objects are not contended due to (3). Thus link 69 creation can't be a part of deadlock - it can't be blocked on source
+4 -4
Documentation/filesystems/porting
··· 107 --- 108 [informational] 109 110 - ->link() callers hold ->i_sem on the object we are linking to. Some of your 111 problems might be over... 112 113 --- ··· 130 --- 131 [mandatory] 132 133 - ->setattr() is called without BKL now. Caller _always_ holds ->i_sem, so 134 - watch for ->i_sem-grabbing code that might be used by your ->setattr(). 135 - Callers of notify_change() need ->i_sem now. 136 137 --- 138 [recommended]
··· 107 --- 108 [informational] 109 110 + ->link() callers hold ->i_mutex on the object we are linking to. Some of your 111 problems might be over... 112 113 --- ··· 130 --- 131 [mandatory] 132 133 + ->setattr() is called without BKL now. Caller _always_ holds ->i_mutex, so 134 + watch for ->i_mutex-grabbing code that might be used by your ->setattr(). 135 + Callers of notify_change() need ->i_mutex now. 136 137 --- 138 [recommended]