[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <VI1PR02MB3054A333A1B5D22EE2F4DD64D2F60@VI1PR02MB3054.eurprd02.prod.outlook.com>
Date: Mon, 8 Jul 2019 11:08:44 +0000
From: Tomer Tayar <ttayar@...ana.ai>
To: Oded Gabbay <oded.gabbay@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Omer Shpigelman <oshpigelman@...ana.ai>
CC: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
Subject: RE: [PATCH] habanalabs: use correct variable to show fd open counter
From: Oded Gabbay <oded.gabbay@...il.com>
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@...il.com>
Reviewed-by: Tomer Tayar <ttayar@...ana.ai>
Powered by blists - more mailing lists