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

2019-07-08 Thread Oded Gabbay
On Mon, Jul 8, 2019 at 3:20 PM Greg KH wrote: > > On Mon, Jul 08, 2019 at 02:51:33PM +0300, Oded Gabbay wrote: > > On Mon, Jul 8, 2019 at 2:43 PM Greg KH wrote: > > > > > > On Mon, Jul 08, 2019 at 02:30:13PM +0300, Oded Gabbay wrote: > > > > On Mon, Jul 8, 2019 at 2:21 PM Greg KH > > > >

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

2019-07-08 Thread Greg KH
On Mon, Jul 08, 2019 at 02:51:33PM +0300, Oded Gabbay wrote: > On Mon, Jul 8, 2019 at 2:43 PM Greg KH wrote: > > > > On Mon, Jul 08, 2019 at 02:30:13PM +0300, Oded Gabbay wrote: > > > On Mon, Jul 8, 2019 at 2:21 PM Greg KH wrote: > > > > > > > > On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded

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

2019-07-08 Thread Greg KH
On Mon, Jul 08, 2019 at 02:37:45PM +0300, Oded Gabbay wrote: > On Mon, Jul 8, 2019 at 2:30 PM Oded Gabbay wrote: > > > > On Mon, Jul 8, 2019 at 2:21 PM Greg KH wrote: > > > > > > On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded Gabbay wrote: > > > > The current code checks if the user context

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

2019-07-08 Thread Oded Gabbay
On Mon, Jul 8, 2019 at 2:43 PM Greg KH wrote: > > On Mon, Jul 08, 2019 at 02:30:13PM +0300, Oded Gabbay wrote: > > On Mon, Jul 8, 2019 at 2:21 PM Greg KH wrote: > > > > > > On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded Gabbay wrote: > > > > The current code checks if the user context pointer is

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

2019-07-08 Thread Greg KH
On Mon, Jul 08, 2019 at 02:30:13PM +0300, Oded Gabbay wrote: > On Mon, Jul 8, 2019 at 2:21 PM Greg KH wrote: > > > > On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded Gabbay wrote: > > > The current code checks if the user context pointer is NULL or not to > > > display the number of open file

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

2019-07-08 Thread Oded Gabbay
On Mon, Jul 8, 2019 at 2:30 PM Oded Gabbay wrote: > > On Mon, Jul 8, 2019 at 2:21 PM Greg KH wrote: > > > > On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded Gabbay wrote: > > > The current code checks if the user context pointer is NULL or not to > > > display the number of open file descriptors

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

2019-07-08 Thread Oded Gabbay
On Mon, Jul 8, 2019 at 2:21 PM Greg KH wrote: > > On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded Gabbay wrote: > > 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

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

2019-07-08 Thread Greg KH
On Mon, Jul 08, 2019 at 01:43:55PM +0300, Oded Gabbay wrote: > 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

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

2019-07-08 Thread Tomer Tayar
From: Oded Gabbay 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.

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

2019-07-08 Thread Oded Gabbay
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