[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190813170127.352b0473@cakuba.netronome.com>
Date: Tue, 13 Aug 2019 17:01:27 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Vlad Buslov <vladbu@...lanox.com>
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, davem@...emloft.net,
Jiri Pirko <jiri@...lanox.com>
Subject: Re: [PATCH net-next] net: devlink: remove redundant rtnl lock
assert
On Mon, 12 Aug 2019 20:02:02 +0300, Vlad Buslov wrote:
> It is enough for caller of devlink_compat_switch_id_get() to hold the net
> device to guarantee that devlink port is not destroyed concurrently. Remove
> rtnl lock assertion and modify comment to warn user that they must hold
> either rtnl lock or reference to net device. This is necessary to
> accommodate future implementation of rtnl-unlocked TC offloads driver
> callbacks.
>
> Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
> Acked-by: Jiri Pirko <jiri@...lanox.com>
Looks good, applied.
Powered by blists - more mailing lists