drm/xe: Fix exec IOCTL long running exec queue ring full condition
authorMatthew Brost <matthew.brost@intel.com>
Thu, 4 Jan 2024 08:00:39 +0000 (00:00 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 9 Jan 2024 14:55:14 +0000 (06:55 -0800)
commit97d0047cbb17318431eaf37dfe1a6855539340f9
tree072c233c59cbc57436f069c4923bcef7f83e41ff
parentf4e8ab468fc6cfaf718bb8610940d57a5e2309ba
drm/xe: Fix exec IOCTL long running exec queue ring full condition

The intent is to return -EWOULDBLOCK to the user if a long running exec
queue is full during the exec IOCTL. -EWOULDBLOCK aliases to -EAGAIN
which results in the exec IOCTL doing a retry loop. Fix this by ensuring
the retry loop is broken when returning -EWOULDBLOCK.

Fixes: 8ae8a2e8dd21 ("drm/xe: Long running job update")
Reported-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Brian Welty <brian.welty@intel.com>
drivers/gpu/drm/xe/xe_exec.c