aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorMika Kuoppala <[email protected]>2012-11-28 17:18:45 +0200
committerDaniel Vetter <[email protected]>2012-11-29 11:43:54 +0100
commit7b01e260a6cad9152eefb44ce64f3a2073af1e6b (patch)
treedcd6f9de12bf3e22c79561b5f1a7b9a7aa42f4e3 /fs/jbd/commit.c
parentdf2b23d97919601218e9229ff517afea83fe5520 (diff)
drm/i915: Set sync_seqno properly after seqno wrap
i915_gem_handle_seqno_wrap() will zero all sync_seqnos but as the wrap can happen inside ring->sync_to(), pre wrap seqno was carried over and overwrote the zeroed sync_seqno. When wrap is handled, all outstanding requests will be retired and objects moved to inactive queue, causing their last_read_seqno to be zero. Use this to update the sync_seqno correctly. RING_SYNC registers after wrap will contain pre wrap values which are >= seqno. So injecting the semaphore wait into ring completes immediately. Original idea for using last_read_seqno from Chris Wilson. Signed-off-by: Mika Kuoppala <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions