Commit bcaab0f9 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] add lseek changes to fs porting guide

Al updated Documentation/filesystems/porting with 2.5 changes but there
is no mention of lseek.  The following patch, against 2.5.5, adds lseek
to the list of functions that no longer are called with the BKL.

	Robert Love
parent 59b52d25
...@@ -81,11 +81,12 @@ can relax your locking. ...@@ -81,11 +81,12 @@ can relax your locking.
[mandatory] [mandatory]
->lookup(), ->truncate(), ->create(), ->unlink(), ->mknod(), ->mkdir(), ->lookup(), ->truncate(), ->create(), ->unlink(), ->mknod(), ->mkdir(),
->rmdir(), ->link(), ->symlink() and ->rename() are called without BKL now. ->rmdir(), ->link(), ->lseek(), ->symlink() and ->rename() are called
Grab it on the entry, drop upon return - that will guarantee the same without BKL now. Grab it on the entry, drop upon return - that will
locking you used to have. If your method or its parts do not need BKL - guarantee the same locking you used to have. If your method or its
better yet, now you can shift lock_kernel() / unlock_kernel() so that parts do not need BKL - better yet, now you can shift lock_kernel() and
they would protect exactly what needs to be protected. unlock_kernel() so that they would protect exactly what needs to be
protected.
--- ---
[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