kernel/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
.. .. @@ -261,11 +261,9 @@ 261 261 } 262 262 263 263 /* Install the new fence list, seqcount provides the barriers */ 264 - preempt_disable();265 - write_seqcount_begin(&resv->seq);264 + write_seqlock(&resv->seq);266 265 RCU_INIT_POINTER(resv->fence, new); 267 - write_seqcount_end(&resv->seq);268 - preempt_enable();266 + write_sequnlock(&resv->seq);269 267 270 268 /* Drop the references to the removed fences or move them to ef_list */ 271 269 for (i = j, k = 0; i < old->shared_count; ++i) {