Skip to contentSkip to conversation

mld: change context from atomic to sleepable

PATCH Superseded Taehee Yoo 2 participants 5 messages Feb 8, 2021 – Feb 9, 2021

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

cover mld: change context from atomic to sleepable

This patchset changes context of MLD module.
Before this patch, MLD functions are atomic context so it couldn't use sleepable functions and flags.
This patchset also contains other refactoring patches, which is to use list macro, etc.

1~3 and 5~7 are refactoring patches and 4 and 8 patches actually change context, which is the actual goal of this patchset. MLD module has used timer API. The timer expiration function is processed as the atomic context so in order to change context, it should be replaced.
So, The fourth patch is to switch from timer to delayed_work. And the eighth patch is to use the mutex instead of spinlock and rwlock because A critical section of spinlock and rwlock is atomic.

Taehee Yoo (8):
mld: convert ifmcaddr6 to list macros
mld: convert ip6_sf_list to list macros
mld: use mca_{get | put} instead of refcount_{dec | inc}
mld: convert from timer to delayed work
mld: rename igmp6 to mld
mld: convert ipv6_mc_socklist to list macros
mld: convert ip6_sf_socklist to list macros
mld: change context of mld module

 .../chelsio/inline_crypto/chtls/chtls_cm.c    |    1 +
 drivers/s390/net/qeth_l3_main.c               |    6 +-
 include/linux/ipv6.h                          |    2 +-
 include/net/if_inet6.h                        |   69 +-
 include/net/ndisc.h                           |   14 +-
 include/uapi/linux/in.h                       |    4 +-
 net/batman-adv/multicast.c                    |    4 +-
 net/dccp/ipv6.c                               |    4 +-
 net/ipv6/addrconf.c                           |    9 +-
 net/ipv6/addrconf_core.c                      |    3 +-
 net/ipv6/af_inet6.c                           |   13 +-
 net/ipv6/icmp.c                               |    4 +-
 net/ipv6/mcast.c                              | 2243 +++++++++--------
 net/ipv6/tcp_ipv6.c                           |    4 +-
 net/sctp/ipv6.c                               |    2 +-
 15 files changed, 1284 insertions(+), 1098 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Taehee Yoo

This patchset changes context of MLD module.
Before this patch, MLD functions are atomic context so it couldn't use sleepable functions and flags.
This patchset also contains other refactoring patches, which is to use list macro, etc.

Quoted 8 lines

1~3 and 5~7 are refactoring patches and 4 and 8 patches actually change context, which is the actual goal of this patchset. MLD module has used timer API. The timer expiration function is processed as the atomic context so in order to change context, it should be replaced.
So, The fourth patch is to switch from timer to delayed_work. And the eighth patch is to use the mutex instead of spinlock and rwlock because A critical section of spinlock and rwlock is atomic.

Thanks for working on this.

A quick question: are those cleanup or refactoring patches necessary for the main patch, that is patch 4? If not, please consider separating patch 4 and patch 8 out, as they fix a bug so they are different from the others.

Thanks!

author
#2 lore raw
Quoted 1 line · Cong Wang

Hi Cong!
Thank you for your review.

Quoted 17 lines · Taehee Yoo
Quoted 7 lines

This patchset changes context of MLD module.
Before this patch, MLD functions are atomic context so it couldn't use sleepable functions and flags.
This patchset also contains other refactoring patches, which is to use list macro, etc.

Quoted 8 lines

1~3 and 5~7 are refactoring patches and 4 and 8 patches actually change context, which is the actual goal of this patchset. MLD module has used timer API. The timer expiration function is processed as the atomic context so in order to change context, it should be replaced.
So, The fourth patch is to switch from timer to delayed_work. And the eighth patch is to use the mutex instead of spinlock and rwlock because A critical section of spinlock and rwlock is atomic.

Quoted 7 lines

Thanks for working on this.

A quick question: are those cleanup or refactoring patches necessary for the main patch, that is patch 4? If not, please consider separating patch 4 and patch 8 out, as they fix a bug so they are different from the others.

You're right, this patchset contains many unnecessary changes. So I will send a v2 patch, which contains only the necessary changes. And target branch will be 'net', not 'net-next'.

Thanks a lot for the suggestions and review!
Taehee Yoo

Quoted 1 line

Thanks!

#3 lore raw
Quoted 3 lines · Taehee Yoo

You're right, this patchset contains many unnecessary changes. So I will send a v2 patch, which contains only the necessary changes. And target branch will be 'net', not 'net-next'.

Just to be clear: this is up to you. I am not suggesting they should target 'net', I am fine with 'net' or 'net-next'. All I suggest is to split them.

Thanks!

author
#4 lore raw
Quoted 11 lines · Cong Wang
Quoted 3 lines · Taehee Yoo

You're right, this patchset contains many unnecessary changes. So I will send a v2 patch, which contains only the necessary changes. And target branch will be 'net', not 'net-next'.

Just to be clear: this is up to you. I am not suggesting they should target 'net', I am fine with 'net' or 'net-next'. All I suggest is to split them.

Thanks!

Okay, I understand.
Thanks!

Taehee Yoo