Re: [PATCH] drm/kms/plane: Avoiding redundant checks in case of EDEADLK retries

2018-07-30 Thread Maarten Lankhorst
Op 30-07-18 om 07:18 schreef Satendra Singh Thakur: > 1. Currently, if modeset_lock is re-tried many times in case of EDEADLK > error, then this will be the code flow > > retry: > ret = drm_modeset_lock(); > > if (ret)-->this is true > goto out; > > out: > if (fb) >

[PATCH] drm/kms/plane: Avoiding redundant checks in case of EDEADLK retries

2018-07-30 Thread Satendra Singh Thakur
1. Currently, if modeset_lock is re-tried many times in case of EDEADLK error, then this will be the code flow retry: ret = drm_modeset_lock(); if (ret)-->this is true goto out; out: if (fb) if (plane->old_fb) if (ret == -EDEADLK) g