On 04/25/2018 08:01 PM, Eric W. Biederman wrote:
Andrey Grodzovsky <Andrey.Grodzovsky@xxxxxxx> writes:
On 04/25/2018 01:17 PM, Oleg Nesterov wrote:The big question is why do you need to wait during the final closing a
On 04/25, Andrey Grodzovsky wrote:But this one is called for each task releasing a reference to the the file, so
here (drm_sched_entity_fini) is also a bad idea, but we still want to beCan you hook f_op->flush method?
able to exit immediately
and not wait for GPU jobs completion when the reason for reaching this code
is because of KILL
signal to the user process who opened the device file.
not sure I see how this solves the problem.
file?
The wait can be terminated so the wait does not appear to be simply a
matter of correctness.
Well, as I understand it, it just means that you don't want to abruptly terminate GPU work in progress without a good
reason (such as KILL signal). When we exit we are going to release various resources GPU is still using so we either
wait for it to complete or terminate the remaining jobs.
Andrey
Eric