RE: [PATCH] habanalabs: use correct variable to show fd open counter

From: Tomer Tayar
Date: Mon Jul 08 2019 - 07:08:49 EST


From: Oded Gabbay <oded.gabbay@xxxxxxxxx>
Sent: Monday, 8 July 2019 13:44

> The current code checks if the user context pointer is NULL or not to
> display the number of open file descriptors of a device. However, that
> variable (user_ctx) will eventually go away as the driver will support
> multiple processes. Instead, the driver can use the atomic counter of
> the open file descriptors which the driver already maintains.
>
> Signed-off-by: Oded Gabbay <oded.gabbay@xxxxxxxxx>

Reviewed-by: Tomer Tayar <ttayar@xxxxxxxxx>