Skip to content
Commit dfd11184 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Fix incorrect invalidation for DIO/buffered I/O



In patch 209806ab we allowed
local deferred locks to be granted against a cached exclusive
lock. That opened up a corner case which this patch now
fixes.

The solution to the problem is to check whether we have cached
pages each time we do direct I/O and if so to unmap, flush
and invalidate those pages. Since the glock state machine
normally does that for us, mostly the code will be a no-op.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 502be2a3
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