The 'mask' bitmap is local to this function. So the non-atomic
'__set_bit()' can be used to save a few cycles.
Signed-off-by: Christophe JAILLET <redacted>
---
net/core/net-sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:
On Sun, 21 Nov 2021 19:01:03 +0100 you wrote:
The 'mask' bitmap is local to this function. So the non-atomic
'__set_bit()' can be used to save a few cycles.
Signed-off-by: Christophe JAILLET <redacted>
---
net/core/net-sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Xin Long <lucien.xin@gmail.com> Date: 2021-11-22 15:23:21
On Sun, Nov 21, 2021 at 2:38 PM Christophe JAILLET
[off-list ref] wrote:
quoted hunk
The 'mask' bitmap is local to this function. So the non-atomic
'__set_bit()' can be used to save a few cycles.
Signed-off-by: Christophe JAILLET <redacted>
---
net/core/net-sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Sun, Nov 21, 2021 at 2:38 PM Christophe JAILLET
[off-list ref] wrote:
quoted
The 'mask' bitmap is local to this function. So the non-atomic
'__set_bit()' can be used to save a few cycles.
Signed-off-by: Christophe JAILLET <redacted>
---
net/core/net-sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
The similar optimization can seem to be done in br_vlan.c and br_if.c as well.
Hi,
br_if.c should be fixed in cc0be1ad686f.
br_vlan.c was not spotted by my heuristic (a set of grep, while looking
at something else). So, thanks for your feedback.
Feel free to propose a patch for it, it was not part of my todo list :)
If you prefer, I can also send a patch. Let me know.
CJ