Hi, > -----Original Message----- > From: Bing Zhao <[email protected]> > Sent: Thursday, October 26, 2023 12:15 PM > To: Matan Azrad <[email protected]>; Slava Ovsiienko > <[email protected]>; Raslan Darawsheh <[email protected]>; > Suanming Mou <[email protected]>; Ori Kam <[email protected]> > Cc: [email protected]; Gregory Etelson <[email protected]>; > [email protected] > Subject: [PATCH] net/mlx5: fix the workspace double free in Windows > > The thread specific variable workspace indicated by "key_workspace" > should be freed explicitly when closing a device. For example, in > Linux, when exiting an application, the thread will not exit > explicitly and the thread resources will not be deconstructed. > > The commit to solve this introduced a global list to manage the > workspace resources as a garbage collector. It will also be executed > in Windows, but the workspaces have already been freed in the > function mlx5_flow_os_release_workspace(). > > With this commit, the garbage collector will only be executed in > Linux. The workspace resources management in Windows will remain > the same with some stub function when needed. > > Fixes: dc7c5e0aa905 ("net/mlx5: fix flow workspace destruction") > Cc: [email protected] > Cc: [email protected] > > Signed-off-by: Bing Zhao <[email protected]> > Acked-by: Matan Azrad <[email protected]>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

