Skip to content
Unverified Commit dd2d6b7f authored by Luis Henriques's avatar Luis Henriques Committed by Christian Brauner
Browse files

fs: drop assert in file_seek_cur_needs_f_lock



The assert in function file_seek_cur_needs_f_lock() can be triggered very
easily because there are many users of vfs_llseek() (such as overlayfs)
that do their custom locking around llseek instead of relying on
fdget_pos(). Just drop the overzealous assertion.

Fixes: da06e3c5 ("fs: don't needlessly acquire f_lock")
Suggested-by: default avatarJan Kara <jack@suse.cz>
Suggested-by: default avatarMateusz Guzik <mjguzik@gmail.com>
Signed-off-by: default avatarLuis Henriques <luis@igalia.com>
Link: https://lore.kernel.org/20250613101111.17716-1-luis@igalia.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 0b9d62a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment