Re: [PATCH] drm/i915: Nuke struct_mutex from context_setparam

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Chris Wilson (2018-09-11 13:50:22)
> Userspace should be free to race against itself and shoot itself in
> the foot if it so desires to adjust a parameter at the same time as
> submitting a batch to that context. As such, the struct_mutex in context
> setparam is only being used to serialise userspace against itself and
> not for any protection of internal structs and so is superfluous.
> 
> Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

To reduce the amount of queasiness here, we should split off the
ctx->flags and ctx->user_flags.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux