diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-03-29 22:51:17 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2022-04-05 18:53:24 +0300 |
commit | f35cf1a59e9a5afd1ce8f020830a18adf2d86db3 (patch) | |
tree | e082d4267414fa7512cfdad2f540adf0ed436993 /Documentation/kernel-hacking/locking.rst | |
parent | a32d5c0fc12b1dec44ddd97434cbb0203c7e60e5 (diff) | |
download | linux-f35cf1a59e9a5afd1ce8f020830a18adf2d86db3.tar.xz |
Documentation: kernel-hacking: minor edits for style
Rusty's kernel-hacking guides provide important information, however
they are written in a narrative style that some readers may interpret as
off-putting. Since the goal is to make kernel documentation accessible
to as many new developers as possible, it's best to avoid the turns of
phrase that require a specific cultural context to properly understand.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/kernel-hacking/locking.rst')
-rw-r--r-- | Documentation/kernel-hacking/locking.rst | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Documentation/kernel-hacking/locking.rst b/Documentation/kernel-hacking/locking.rst index 4cbd50edf277..6805ae6e86e6 100644 --- a/Documentation/kernel-hacking/locking.rst +++ b/Documentation/kernel-hacking/locking.rst @@ -941,8 +941,7 @@ lock. A classic problem here is when you provide callbacks or hooks: if you call these with the lock held, you risk simple deadlock, or a deadly -embrace (who knows what the callback will do?). Remember, the other -programmers are out to get you, so don't do this. +embrace (who knows what the callback will do?). Overzealous Prevention Of Deadlocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -952,8 +951,6 @@ grabs a read lock, searches a list, fails to find what it wants, drops the read lock, grabs a write lock and inserts the object has a race condition. -If you don't see why, please stay away from my code. - Racing Timers: A Kernel Pastime ------------------------------- |