Commit 4a1b6295 authored by Dave Hansen's avatar Dave Hansen Committed by Jaroslav Kysela

[PATCH] BKL documentation update change

I added ->readdir(), and a new section referring to the sb_op BKL shift
as well.
parent 1955d1d3
...@@ -81,13 +81,20 @@ can relax your locking. ...@@ -81,13 +81,20 @@ can relax your locking.
[mandatory] [mandatory]
->lookup(), ->truncate(), ->create(), ->unlink(), ->mknod(), ->mkdir(), ->lookup(), ->truncate(), ->create(), ->unlink(), ->mknod(), ->mkdir(),
->rmdir(), ->link(), ->lseek(), ->symlink() and ->rename() are called ->rmdir(), ->link(), ->lseek(), ->symlink(), ->rename() and ->readdir()
without BKL now. Grab it on the entry, drop upon return - that will are called without BKL now. Grab it on the entry, drop upon return - that
guarantee the same locking you used to have. If your method or its will guarantee the same locking you used to have. If your method or its
parts do not need BKL - better yet, now you can shift lock_kernel() and parts do not need BKL - better yet, now you can shift lock_kernel() and
unlock_kernel() so that they would protect exactly what needs to be unlock_kernel() so that they would protect exactly what needs to be
protected. protected.
---
[mandatory]
BKL is also moved from around sb operations. ->write_super() Is now called
without BKL held. BKL should have been shifted into individual fs sb_op
functions. If you don't need it, remove it.
--- ---
[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