lkml.org 
[lkml]   [2023]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH net] devlink: Hold devlink lock on health reporter dump get
    On Sun, Oct 01, 2023 at 06:19:40PM +0300, Moshe Shemesh wrote:
    > Devlink health dump get callback should take devlink lock as any other
    > devlink callback. Add devlink lock to the callback and to any call for
    > devlink_health_do_dump().
    >
    > As devlink lock is added to any callback of dump, the reporter dump_lock
    > is now redundant and can be removed.
    >
    > Fixes: d3efc2a6a6d8 ("net: devlink: remove devlink_mutex")
    > Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
    > Reviewed-by: Jiri Pirko <jiri@nvidia.com>

    Reviewed-by: Simon Horman <horms@kernel.org>

    \
     
     \ /
      Last update: 2023-10-03 13:36    [W:3.053 / U:0.676 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site