Skip to content
Commit 089f4eb0 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Don't update inode timestamps for direct writes



During direct reads and writes, the caller is holding the inode glock in
deferred mode, which doesn't allow metadata updates.  However, a previous
change caused callers to update the inode modification time before carrying out
direct writes, which caused the inode glock to be converted to exclusive mode
for the timestamp update, only to be immediately converted back to deferred
mode for the direct write.  This locks out other direct readers and writers
and wreaks havoc on performance.

Fix that by reverting to not updating the inode modification time for direct
writes.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 21d9067e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment