[PATCH] [RESENDING] netconsole: register cmdline netconsole configs to configfs

2008-02-11 Thread Joonwoo Park
eview netconsole target configs from cmdline. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/netconsole.c | 91 -- 1 files changed, 72 insertions(+), 19 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c in

[PATCH 1/2] [RESENDING] fs/dlm: get rid of unnecessary initialization

2008-02-11 Thread Joonwoo Park
default_groups was allocated with kcalloc, so initialize to NULL is unnecessary. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/dlm/config.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/fs/dlm/config.c b/fs/dlm/config.c index c3ad1df..2b96428 100644 --

[PATCH 2/2] [RESENDING] fs/ocfs2: get rid of unnecessary initialization

2008-02-11 Thread Joonwoo Park
default_groups was allocated with kcalloc, so initialize to NULL is unnecessary. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/ocfs2/cluster/nodemanager.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/c

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
2008/2/8, rohit h <[EMAIL PROTECTED]>: > Hi, > I am a kernel newbie. > I tried to insmod a C++ module containing classes, inheritance. > I am getting 'unresolved symbol' error when I use the 'new' keyword. > What could the problem be? > > What kind of runtime support is needed ( arm linux kern

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
2008/2/9, Jan Engelhardt <[EMAIL PROTECTED]>: > > On Feb 9 2008 00:14, Joonwoo Park wrote: > >2008/2/8, rohit h <[EMAIL PROTECTED]>: > >> Hi, > >> I am a kernel newbie. > >> I tried to insmod a C++ module containing classes, inheritance. >

[PATCH 5/5] iwlwifi: iwl3945 switch private workqueue to ieee80211->workqueue

2008-01-09 Thread Joonwoo Park
The ieee80211 provides workqueue for nic drivers. private workqueue dosen't need anymore TODO: remove workqueue in iwl_priv Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/wireless/iwlwifi/iwl-3945.c |6 ++-- drivers/net/wireless/iwlwifi/iwl3945-ba

[PATCH 0/5] iwlwifi: iwl3945 fix races, getting rid of sleep from context

2008-01-09 Thread Joonwoo Park
Hello, This patchset does fix iwl3945's races and some other stuff. For now it works for just iwl3945 but if some of them is needed for iwl4965, I would work for it. patch against 2.6.24-rc7 [PATCH 1/5] iwlwifi: iwl3945 flush interrupt mask [PATCH 2/5] iwlwifi: iwl3945 synchronize interrupt and

[PATCH 1/5] iwlwifi: iwl3945 flush interrupt mask

2008-01-09 Thread Joonwoo Park
After enabling/disabling interrupts flushing is required Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/wireless/iwlwifi/iwl-io.h |2 ++ drivers/net/wireless/iwlwifi/iwl3945-base.c |6 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/d

[PATCH 2/5] iwlwifi: iwl3945 synchronize interrupt and tasklet for down iwlwifi

2008-01-09 Thread Joonwoo Park
After disabling interrupts, it's possible irq & tasklet is pending or running This patch eleminates races for down iwlwifi Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/wireless/iwlwifi/iwl3945-base.c |4 1 files changed, 4 insertions(+), 0 deletions(-

[PATCH 3/5] iwlwifi: iwl3945 fix oops while pci remove

2008-01-09 Thread Joonwoo Park
EIP: [] iwl_irq_tasklet+0x82d/0x1010 [iwl3945] SS:ESP 0068:f7c4ff1c Kernel panic - not syncing: Fatal exception in interrupt Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/wireless/iwlwifi/iwl3945-base.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --gi

[PATCH 4/5] iwlwifi: iwl3945 eliminate sleepable task queue from context

2008-01-09 Thread Joonwoo Park
Eleminiate task queuing of iwl_pci_probe, register hw to ieee80211 immediately Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/wireless/iwlwifi/iwl3945-base.c | 66 +- 1 files changed, 43 insertions(+), 23 deletions(-) diff --git a/drivers/net/wi

[PATCH] [NET]: Fix Ooops of napi net_rx_action.

2007-12-11 Thread Joonwoo Park
[NET]: Fix Ooops of napi net_rx_action. Before doing list_move_tail napi poll_list, it should be ensured Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/net/core/dev.c b/net/core/dev.c index 86d6261..74bd5ab 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2207,7 +

Re: [PATCH] [NET]: Fix Ooops of napi net_rx_action.

2007-12-11 Thread Joonwoo Park
2007/12/11, David Miller <[EMAIL PROTECTED]>: > From: "Joonwoo Park" <[EMAIL PROTECTED]> > Date: Tue, 11 Dec 2007 18:13:34 +0900 > > Joonwoo-ssi annyoung haseyo, Wow Great! :-) > How can the NAPI_STATE_SCHED bit be cleared externally yet we take >

Re: [PATCH] [NET]: Fix Ooops of napi net_rx_action.

2007-12-11 Thread Joonwoo Park
2007/12/12, Brandeburg, Jesse <[EMAIL PROTECTED]>: > Joonwoo Park wrote: > > /* If no Tx and not enough Rx work done, exit the polling mode */ > > if ((!tx_cleaned && (work_done == 0)) || > >!netif_running(poll_dev)) { > > quit_polling: &g

Re: [PATCH] [NET]: Fix Ooops of napi net_rx_action.

2007-12-11 Thread Joonwoo Park
2007/12/12, Brandeburg, Jesse <[EMAIL PROTECTED]>: > > all drivers using NAPI in 2.6.24+ (NNAPI??) must return zero here, after > calling netif_rx_complete. netif_rx_complete plus work_done != 0 causes > a bug. > Brandeburg, Don't we need to return non-zero work_done after netif_rx_complete if wo

[PATCH 7/7] [NETDEV]: myri10ge Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: myri10ge Fix possible causing oops of net_rx_action Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/myri10ge/myri10ge.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c

[PATCH 5/7] [NETDEV]: e100 Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: e100 Fix possible causing oops of net_rx_action Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/e100.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/e100.c b/drivers/net/e100.c index e1c8a0d..7cb4ed0 100644 --- a/drivers/ne

[PATCH 4/7] [NETDEV]: ixgbe Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: ixgbe Fix possible causing oops of net_rx_action Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/ixgbe/ixgbe_main.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 0

[PATCH 3/7] [NETDEV]: ixgb Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: ixgb Fix possible causing oops of net_rx_action Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/ixgb/ixgb_main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index 3021234..a

[PATCH 1/7] [NETDEV]: e1000 Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: e1000 Fix possible causing oops of net_rx_action returning work_done == weight as true after calling netif_rx_complete will cause oops in net_rx_action. Thanks Joonwoo Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/e1000/e1000_main.c |2 ++ 1 files chan

[PATCH 2/7] [NETDEV]: e1000e Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: e1000e Fix possible causing oops of net_rx_action Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/e1000e/netdev.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 4fd2e23..8

[PATCH 6/7] [NETDEV]: tehuti Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
[NETDEV]: tehuti Fix possible causing oops of net_rx_action Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/tehuti.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 21230c9..955e749 100644 --- a/d

Re: [PATCH 6/7] [NETDEV]: tehuti Fix possible causing oops of net_rx_action

2007-12-11 Thread Joonwoo Park
2007/12/12, Stephen Hemminger <[EMAIL PROTECTED]>: > On Wed, 12 Dec 2007 13:01:27 +0900 > "Joonwoo Park" <[EMAIL PROTECTED]> wrote: > > > [NETDEV]: tehuti Fix possible causing oops of net_rx_action > > > > Signed-off-by: Joonwoo Park <[EMAIL

Re: [RFC] net: napi fix

2007-12-11 Thread Joonwoo Park
2007/12/12, Stephen Hemminger <[EMAIL PROTECTED]>: > Isn't this a better fix for all drivers, rather than peppering every > driver with the special case. This is how the logic worked up until > 2.6.24. > > > --- a/net/core/dev.c2007-12-11 12:16:20.0 -0800 > +++ b/net/core/dev.c2007-

Re: [PATCH 1/2] [net/wireless/iwlwifi] : iwlwifi 3945 Fix raceconditional panic.

2007-12-12 Thread Joonwoo Park
2007/12/12, Andrew Morton <[EMAIL PROTECTED]>: > > Did drivers/net/wireless/iwlwifi/iwl4965-base.c get fixed in a simlar > fashion? > Hi Andrew, Both of them was applied to mainline. commit 3ae6a054553ee8b7f74bf7de8904022b26705778 Author: Joonwoo Park <[EMAIL PROTECTED]>

Re: [PATCH 7/7] [NETDEV]: myri10ge Fix possible causing oops of net_rx_action

2007-12-12 Thread Joonwoo Park
2007/12/12, Subrata Modak <[EMAIL PROTECTED]>: > Would you like to submit the Driver Test Cases to LTP ? Or, if you have > your Driver test cases written in C, we can port to LTP and have it > inside the LTP package. > You can also check out the following links for more info, and can always > ping

Re: [PATCH 6/7] [NETDEV]: tehuti Fix possible causing oops of net_rx_action

2007-12-12 Thread Joonwoo Park
2007/12/13, David Miller <[EMAIL PROTECTED]>: > From: "Joonwoo Park" <[EMAIL PROTECTED]> > Date: Wed, 12 Dec 2007 13:01:27 +0900 > > > Any time your trying to make a caller "happy" by adjusting > a return value forcefully, it's a hack.

Re: [RFC] net: napi fix

2007-12-12 Thread Joonwoo Park
2007/12/13, Kok, Auke <[EMAIL PROTECTED]>: > David Miller wrote: > > From: Andrew Gallatin <[EMAIL PROTECTED]> > > Date: Wed, 12 Dec 2007 12:29:23 -0500 > > > >> Is the netif_running() check even required? > > > > No, it is not. > > > > When a device is brought down, one of the first things > > tha

RE: [PATCH 1/7] [NETDEV]: e1000 Fix possible causing oops of net_rx_action

2007-12-13 Thread Joonwoo Park
2007/12/12, Joonwoo Park <[EMAIL PROTECTED]>: > [NETDEV]: e1000 Fix possible causing oops of net_rx_action > returning work_done == weight as true after calling netif_rx_complete will > cause oops in net_rx_action. > I tried two types of patches for oops and ifconfig down ha

Re: [RFC] net: napi fix

2007-12-13 Thread Joonwoo Park
2007/12/13, Andrew Gallatin <[EMAIL PROTECTED]>: > > If the netif_running() check is indeed required to make a device break > out of napi polling and respond to an ifconfig down, then I think the > netif_running() check should be moved up into net_rx_action() to avoid > potential for driver complex

Re: [PATCH 1/7] [NETDEV]: e1000 Fix possible causing oops of net_rx_action

2007-12-13 Thread Joonwoo Park
2007/12/13, David Miller <[EMAIL PROTECTED]>: > From: "Joonwoo Park" <[EMAIL PROTECTED]> > Date: Thu, 13 Dec 2007 19:18:56 +0900 > > > Just blowing netif_running up is not best solution I think, it makes > > ifconfig down hang at least for e1000. > &g

[PATCH 1/2] fs/dlm: get rid of unnecessary initialization

2007-12-25 Thread Joonwoo Park
default_groups was allocated with kcalloc, so initialization to NULL is unnecessary. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/dlm/config.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 2f8e3c8..95085d1

[PATCH 2/2] fs/ocfs2: get rid of unnecessary initialization

2007-12-25 Thread Joonwoo Park
default_groups was allocated with kcalloc, so initialization to NULL is unnecessary. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/ocfs2/cluster/nodemanager.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/c

[PATCH 2/2] configfs: file.c fix possible recursive locking

2007-12-25 Thread Joonwoo Park
00 [] kernel_init+0x142/0x320 [] kernel_thread_helper+0x7/0x14 ======= Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/configfs/file.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/configfs/file.c b/fs/configfs/file.c index a3658f9..397cb50 1006

[PATCH 1/2] configfs: dir.c fix possible recursive locking

2007-12-25 Thread Joonwoo Park
120 [] lock_acquire+0x82/0xa0 [] mutex_lock_nested+0x98/0x2e0 [] configfs_attach_group+0x4f/0x190 [] configfs_register_subsystem+0xc6/0x130 [] init_netconsole+0x2b6/0x300 [] kernel_init+0x142/0x320 [] kernel_thread_helper+0x7/0x14 ======= Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --

[PATCH] netconsole: register cmdline netconsole configs to configfs

2007-12-25 Thread Joonwoo Park
eview netconsole target configs from cmdline. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/netconsole.c | 91 -- 1 files changed, 72 insertions(+), 19 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c in

Re: [PATCH 25/26] atl1: add NAPI support

2007-12-31 Thread Joonwoo Park
2008/1/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > From: Jay Cliburn <[EMAIL PROTECTED]> > > Add support for NAPI, styled after the e1000 NAPI implementation. That we > follow the e1000 for NAPI shouldn't come as much of a surprise, since the > entire atl1 driver is based heavily upon it. > > Sign

RE: [PATCH 25/26] [REVISED] atl1: add NAPI support

2008-01-01 Thread Joonwoo Park
Hi Jay, + if ((work_done < budget) || !netif_running(poll_dev)) { +quit_polling: + netif_rx_complete(poll_dev, napi); + + if (!test_bit(__ATL1_DOWN, &adapter->flags)) + atlx_irq_enable(adapter); + } Not enough :) If netif_running() is

RE: [PATCH 1/2] [net/wireless/iwlwifi] : iwlwifi 3945 Fix raceconditional panic.

2007-11-28 Thread Joonwoo Park
[net/wireless/iwlwifi] : iwlwifi 3945 Fix race conditional panic. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 465da4f..e51e872 100644 --- a/drivers/net/wireless/iwlwifi/iwl

RE: [PATCH 2/2] [net/wireless/iwlwifi] : iwlwifi 4965 Fix race conditional panic.

2007-11-28 Thread Joonwoo Park
The cancel_delayed_work_sync has moved into ilw_cancel_deferred_work. Thanks Zhu Yi. [net/wireless/iwlwifi] : iwlwifi 4965 Fix race conditional panic. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/i

NET: ASSERT_RTNL in __dev_set_promiscuity makes debug warning

2007-12-04 Thread Joonwoo Park
Hi, dev_set_rx_mode calls __dev_set_rx_mode with softirq disabled (by netif_tx_lock_bh) therefore __dev_set_promiscuity can be called with softirq disabled. It will cause in_interrupt() to return true and ASSERT_RTNL warning. Is there a good solution to fix it besides blowing ASSERT_RTNL up? Than

RE: [PATCH] NET: ASSERT_RTNL in __dev_set_promiscuity makes debug warning

2007-12-04 Thread Joonwoo Park
2007/12/5, Herbert Xu <[EMAIL PROTECTED]>: > Joonwoo Park <[EMAIL PROTECTED]> wrote: > > Hi, > > dev_set_rx_mode calls __dev_set_rx_mode with softirq disabled (by > > netif_tx_lock_bh) > > therefore __dev_set_promiscuity can be called with softirq disabl

Re: [PATCH] NET: ASSERT_RTNL in __dev_set_promiscuity makes debug warning

2007-12-04 Thread Joonwoo Park
2007/12/5, Herbert Xu <[EMAIL PROTECTED]>: > The idea is to not touch the unicast stuff at all on the multicast path. > > Anyway, this was discussed on netdev so please check the archives because > there is more to this than just changing the multicast handling. We also > talked about consolidatin

[PATCH] [NET]: Fix TX bug VLAN in VLAN

2007-11-23 Thread Joonwoo Park
ET]: Fix TX bug VLAN in VLAN Fix misbehavior of vlan_dev_hard_start_xmit() for recursive encapsulations. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 7a36878..3e34990 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_

[PATCH 1/4] xfrm_hash: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
xfrm_hash: kmalloc + memset conversion to kzalloc Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> Thanks. Joonwoo --- diff --git a/net/xfrm/xfrm_hash.c b/net/xfrm/xfrm_hash.c index 55ab579..37795bd 100644 --- a/net/xfrm/xfrm_hash.c +++ b/net/xfrm/xfrm_hash.c @@ -17,16 +17,17 @@

[PATCH 2/4] fib_semantics: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
fib_semantics: kmalloc + memset conversion to kzalloc Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> Thanks. Joonwoo --- diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 1351a26..87a1e72 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -

[PATCH 4/4] atm/ambassador: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
atm/ambassador: kmalloc + memset conversion to kzalloc Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> Thanks. Joonwoo --- diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c index b34b382..4f99ba3 100644 --- a/drivers/atm/ambassador.c +++ b/drivers/atm/ambassador.c @@ -

[PATCH 3/4] fib_hash: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
fib_hash: kmalloc + memset conversion to kzalloc Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> Thanks. Joonwoo --- diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c index 527a6e0..2874fe7 100644 --- a/net/ipv4/fib_hash.c +++ b/net/ipv4/fib_hash.c @@ -102,10 +102,14 @@ static

Re: [PATCH 4/4] atm/ambassador: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
2007/11/26, Robert P. J. Day <[EMAIL PROTECTED]>: > i'm not sure the above is a safe thing to do, as you're zeroing that > area, then making a function call and assuming, upon entry to the > function call, that the caller has done the right thing. i don't see > how you can count on that, depending

RE: [PATCH 1/4] xfrm_hash: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
ks. Joonwoo Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/net/xfrm/xfrm_hash.c b/net/xfrm/xfrm_hash.c index 55ab579..a2023ec 100644 --- a/net/xfrm/xfrm_hash.c +++ b/net/xfrm/xfrm_hash.c @@ -17,17 +17,14 @@ struct hlist_head *xfrm_hash_alloc(unsigned int sz)

Re: [PATCH 3/4] fib_hash: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
fib_hash: kmalloc + memset conversion to kzalloc fix to avoid memset entirely. Thanks. Joonwoo Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c index 527a6e0..9d0cee2 100644 --- a/net/ipv4/fib_hash.c +++ b/net/ipv4/fib_hash.c @@ -

Re: [PATCH 2/4] fib_semantics: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
fib_semantics: kmalloc + memset conversion to kzalloc fix to avoid memset entirely. Thanks. Joonwoo Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 1351a26..352f8c4 100644 --- a/net/ipv4/fib_semantics.c +++ b/ne

Re: [PATCH 1/4] xfrm_hash: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
> > i believe the more common standard for the above is: > > else if (hashdist) { > > to reduce the level of overall indentation, no? > No, it was. Because there was a memset in that indentation, but I made it by removing memset. Thanks. Joonwoo - To unsubscribe from this list: send the line "un

Re: [PATCH 4/4] atm/ambassador: kmalloc + memset conversion to kzalloc

2007-11-26 Thread Joonwoo Park
2007/11/26, Robert P. J. Day <[EMAIL PROTECTED]>: > i realized that. but all you can say is that only amb_init() calls > setup_dev() *currently*. when you're not looking, someone else might > (for whatever reason) call setup_dev() from elsewhere, and *that* call > might not zero that memory area.

Re: [PATCH] [NET]: Fix TX bug VLAN in VLAN

2007-11-26 Thread Joonwoo Park
2007/11/26, Herbert Xu <[EMAIL PROTECTED]>: > On Fri, Nov 23, 2007 at 12:12:52PM +, Joonwoo Park wrote: > > This patch fixes http://bugzilla.kernel.org/show_bug.cgi?id=8766 > > > > Is it possible? > > BUG((veth->h_vlan_proto != htons(ETH_P_8021Q))

RE: [PATCH] [NET]: Fix TX bug VLAN in VLAN

2007-11-26 Thread Joonwoo Park
2007/11/27, Herbert Xu <[EMAIL PROTECTED]>: > On Tue, Nov 27, 2007 at 02:32:49PM +0900, Joonwoo Park wrote: > > > > Thanks Herbert. > > Well.. I think patch would work propely for AF_PACKET also. > > (I did not insert BUG() macro in my patch) > > How do you

[PATCH 1/2] [net/wireless/iwlwifi] : iwlwifi 3945 Fix race conditional panic.

2007-11-28 Thread Joonwoo Park
04 00 00 <3b> 06 74 0d 43 83 fb 02 77 23 c7 45 e8 fb ff ff ff 83 c1 64 39 EIP: [] iwl_verify_inst_sparse+0x101/0x140 [iwl3945] SS:ESP 0068:dfef5f00 Thanks Joonwoo [net/wireless/iwlwifi] : iwlwifi 3945 Fix race conditional panic. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]>

[PATCH 2/2] [net/wireless/iwlwifi] : iwlwifi 4965 Fix race conditional panic.

2007-11-28 Thread Joonwoo Park
I think 4965 may suffer it too, but I could not test. Thanks Joonwoo [net/wireless/iwlwifi] : iwlwifi 4965 Fix race conditional panic. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-

Re: [ipw3945-devel] [PATCH 2/5] iwlwifi: iwl3945 synchronize interruptand tasklet for down iwlwifi

2008-01-10 Thread Joonwoo Park
Hello Reinette, 2008/1/11, Chatre, Reinette <[EMAIL PROTECTED]>: > > Could synchronize_irq() be moved into iwl_disable_interrupts() ? I am At this time, iwl_disable_interrupts() can be called with irq disabled, so for do that I think additional modification would be needed. > also wondering if w

Re: [ipw3945-devel] [PATCH 4/5] iwlwifi: iwl3945 eliminate sleepable task queue from context

2008-01-10 Thread Joonwoo Park
2008/1/11, Zhu Yi <[EMAIL PROTECTED]>: > Hi Joonwoo, > > We already did something similiar in our code base. Could you please > take a look at this patch? > > http://intellinuxwireless.org/repos/?p=iwlwifi.git;a=commitdiff;h=57aa02255e9d7be5e2494683fc2793bd1d0707e2 > > Thanks, > -yi Ooops :-) I sh

Re: [ipw3945-devel] [PATCH 4/5] iwlwifi: iwl3945 eliminate sleepable task queue from context

2008-01-10 Thread Joonwoo Park
2008/1/11, Zhu Yi <[EMAIL PROTECTED]>: > > The version doesn't work on a .24-rc kernel. Can you compile it > with .23? > Thank you for your help, I built it. Thanks, Joonwoo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Mo

Re: [ipw3945-devel] [PATCH 2/5] iwlwifi: iwl3945 synchronize interruptand tasklet for down iwlwifi

2008-01-14 Thread Joonwoo Park
Joonwoo Park wrote: 2008/1/11, Chatre, Reinette <[EMAIL PROTECTED]>: On Thursday, January 10, 2008 5:25 PM, Joonwoo Park wrote: What modification are you considering? Roughly, I'm considering make synchronize_irq() be moved into iwl_disable_interrupts() and fix iwl_irq_tasket

Re: [ipw3945-devel] [PATCH 2/5] iwlwifi: iwl3945 synchronize interruptand tasklet for down iwlwifi

2008-01-14 Thread Joonwoo Park
uld be called after doing synchronize_irq. To avoid races between iwl_synchronize_irq and iwl_irq_tasklet STATUS_INT_ENABLED flag is needed. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/wireless/iwlwifi/iwl3945-base.c | 33 ++- 1 files changed,

[PATCH 1/2] [VLAN] Don't drop an unclassfied vlan packet as PACKET_OTHERHOST

2007-11-10 Thread Joonwoo Park
check, comments will be appreciated. Thanks. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- include/linux/if_vlan.h | 61 ++ 1 files changed, 34 insertions(+), 27 deletions(-) diff --git a/include/linux/if_vlan.h b/include/linux/if_v

[PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode

2007-11-10 Thread Joonwoo Park
check, comments will be appreciated. Thanks. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/net/e1000/e1000_main.c | 26 -- 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c in

Re: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode

2007-11-12 Thread Joonwoo Park
2007/11/13, Willy Tarreau <[EMAIL PROTECTED]>: > On Mon, Nov 12, 2007 at 02:57:16PM -0800, David Miller wrote: > > From: "Chris Friesen" <[EMAIL PROTECTED]> > > Date: Mon, 12 Nov 2007 16:43:24 -0600 > > > > > David Miller wrote: > > > > > > > When you select VLAN, you by definition are asking for n

Re: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode

2007-11-12 Thread Joonwoo Park
2007/11/13, David Miller <[EMAIL PROTECTED]>: > From: Willy Tarreau <[EMAIL PROTECTED]> > Date: Tue, 13 Nov 2007 00:32:57 +0100 > > > At least, being able to disable the feature at module load time > > would be acceptable. Many people who often need to sniff on decent > > machines would always keep

RE: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode

2007-11-13 Thread Joonwoo Park
as applied. But the ich8lan stuff was not removed at this patch. I'll work e1000e too :-) Thanks. Joonwoo [E1000]: Disable vlan hw accel when promiscuous mode Even though netdevice is in the promiscuous mode, we should receive all of ingress packets. This disable the vlan filtering feature when

Re: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode

2007-11-13 Thread Joonwoo Park
> > I'll work e1000e too :-) > > awesome, looking forward to that. > BTW, It seems to need Patrick's unicast patch for e1000e first. I'll looking forward to that too. Thanks Joonwoo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTEC

FW: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode

2007-11-16 Thread Joonwoo Park
2007/11/11, Joonwoo Park <[EMAIL PROTECTED]>: > IMHO even though netdevice is in the promiscuous mode, we should receive all > of ingress packets. > This disable the vlan filtering feature when a vlan hw accel configured e1000 > device goes into promiscuous mode. > This ma

[PATCH] kexec: fix pci device initialization fail after kexec (2.6.23-rc2). (Related to e1000 doesn't resume properly from standby)

2007-08-06 Thread Joonwoo Park
Hi. I think that the pci_set_power_state() has bug. The specification says that some delays is required. Simon, please can I know whether it works to you? It is seems to the things are related. Joonwoo Park. diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 37c00f6..9f78064 100644 --- a

Re: [PATCH] kexec: fix pci device initialization fail after kexec (2.6.23-rc2). (Related to e1000 doesn't resume properly from standby)

2007-08-06 Thread Joonwoo Park
2007/8/6, Rafael J. Wysocki <[EMAIL PROTECTED]>: > On Monday, 6 August 2007 15:42, Joonwoo Park wrote: > > Hi. > > I think that the pci_set_power_state() has bug. > > The specification says that some delays is required. > > And they are in plac

Re: [PATCH] kexec: fix pci device initialization fail after kexec (2.6.23-rc2). (Related to e1000 doesn't resume properly from standby)

2007-08-06 Thread Joonwoo Park
2007/8/7, Rafael J. Wysocki <[EMAIL PROTECTED]>: > On Monday, 6 August 2007 17:50, Joonwoo Park wrote: > > 2007/8/6, Rafael J. Wysocki <[EMAIL PROTECTED]>: > > > On Monday, 6 August 2007 15:42, Joonwoo Park wrote: > > > > Hi. > > > > I thi

Re: [PATCH] sched: Fix SCHED_HRTICK bug leading to late preemption of tasks

2016-09-19 Thread Joonwoo Park
On Mon, Sep 19, 2016 at 10:21:58AM +0200, Peter Zijlstra wrote: > On Fri, Sep 16, 2016 at 06:28:51PM -0700, Joonwoo Park wrote: > > From: Srivatsa Vaddagiri > > > > SCHED_HRTICK feature is useful to preempt SCHED_FAIR tasks on-the-dot > > Right, but I always found th

Re: [PATCH] sched: Fix SCHED_HRTICK bug leading to late preemption of tasks

2016-09-19 Thread Joonwoo Park
On Sun, Sep 18, 2016 at 07:28:32AM +0800, Wanpeng Li wrote: > 2016-09-17 9:28 GMT+08:00 Joonwoo Park : > > From: Srivatsa Vaddagiri > > > > SCHED_HRTICK feature is useful to preempt SCHED_FAIR tasks on-the-dot > > (just when they would have exceeded their ideal_runtime)

Re: [PATCH] sched: Fix SCHED_HRTICK bug leading to late preemption of tasks

2016-09-19 Thread Joonwoo Park
On Mon, Sep 19, 2016 at 11:04:49AM -0700, Joonwoo Park wrote: > On Mon, Sep 19, 2016 at 10:21:58AM +0200, Peter Zijlstra wrote: > > On Fri, Sep 16, 2016 at 06:28:51PM -0700, Joonwoo Park wrote: > > > From: Srivatsa Vaddagiri > > > > > > SCHED_HRTICK feature i

[PATCH] regulator: core: don't return error with inadequate reason

2016-09-19 Thread Joonwoo Park
rg Signed-off-by: Joonwoo Park --- I think we can get rid of ops->get_optimum_mode since *most* of regulator drivers' get_optimum_mode ops are dead code. The only driver at least I found which has valid vaild_modes_mask with proper ops->get_optimum_mode is wm8350-regulator.c used by mach-

[PATCH] cpuset: handle race between CPU hotplug and cpuset_hotplug_work

2016-09-08 Thread Joonwoo Park
ed to be identical to online CPUs eventually. Hence fall back to online CPU mask when there is no intersection between top cpuset's effective_cpus and online CPU mask. Signed-off-by: Joonwoo Park Cc: Li Zefan Cc: cgro...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- kernel/cpuset.c | 17

[PATCH] sched: fix incorrect wait time and wait count statistics

2015-10-24 Thread Joonwoo Park
event which can be seen by trace or /proc//sched with CONFIG_SCHEDSTATS=y. Carry forward migrating task's wait time prior to migration and don't count migration as a wait end event to fix such statistics error. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: linux-kernel@vger.kernel.org Signed-

Re: [PATCH] sched: fix incorrect wait time and wait count statistics

2015-10-26 Thread Joonwoo Park
On 10/25/2015 03:26 AM, Peter Zijlstra wrote: > On Sat, Oct 24, 2015 at 10:23:14PM -0700, Joonwoo Park wrote: >> @@ -1069,7 +1069,7 @@ static struct rq *move_queued_task(struct rq *rq, >> struct task_struct *p, int new >> { >> lockdep_assert_held(&rq->lock

Re: [PATCH] PCI hotplug : Switch to pci_get_bus_and_slot instead of deprecated pci_find_slot.

2007-10-01 Thread Joonwoo Park
Thank you so much for your check & advise. This time, I've tried on ibmphp_core.c, is it OK? Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- drivers/pci/hotplug/ibmphp_core.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/pci/hotplu

Re: [PATCH v2 RESEND/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-03-30 Thread Joonwoo Park
Hi Thomas, Please find patch v3 which makes only tick_do_timer_cpu to run deferral timer wheel to reduce cache bouncing and let me know what you think. Thanks, Joonwoo >From 0c91f82a0b43b247f1ed310212ef3aada7ccc9f7 Mon Sep 17 00:00:00 2001 From: Joonwoo Park Date: Thu, 11 Sep 2014 15:34

[PATCH 1/2] timer: avoid unnecessary waking up of nohz CPU

2015-04-27 Thread Joonwoo Park
At present, internal_add_timer() examines flags with 'base' which doesn't contain flags. Examine with 'timer->base' to avoid unnecessary waking up of nohz CPU when timer base has TIMER_DEFERRABLE. CC: Thomas Gleixner CC: John Stultz Signed-off-by: Joonwoo Park

[PATCH 2/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-04-27 Thread Joonwoo Park
le, introduce a common timer base which is only for cpu unbound deferrable timers to make those are indeed cpu unbound so that can be scheduled by tick_do_timer_cpu. This common timer fixes scalability issue of delayed work and all other cpu unbound deferrable timer using implementations. CC: Thomas G

Re: [PATCH 2/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-04-27 Thread Joonwoo Park
Thomas, I made some clean up. Will much appreciate if you can give me some feedback on this. Thanks, Joonwoo On 04/27/2015 07:39 PM, Joonwoo Park wrote: > When a deferrable work (INIT_DEFERRABLE_WORK, etc.) is queued via > queue_delayed_work() it's probably intended to run the work

[PATCH/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2014-09-11 Thread Joonwoo Park
le, introduce a common timer base which is only for cpu unbound deferrable timers to make those are indeed cpu unbound so that can be scheduled by any of non idle cpus. This common timer fixes scalability issue of delayed work and all other cpu unbound deferrable timer using implementations. cc: Thoma

Re: [PATCH/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2014-09-11 Thread Joonwoo Park
On Thu, Sep 11, 2014 at 04:56:52PM -0700, Joonwoo Park wrote: > When a deferrable work (INIT_DEFERRABLE_WORK, etc.) is queued via > queue_delayed_work() it's probably intended to run the work item on any > CPU that isn't idle. However, we queue the work to run at a later t

Re: [PATCH v2 RESEND/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2014-09-26 Thread Joonwoo Park
On Tue, Sep 23, 2014 at 08:33:34PM +0200, Thomas Gleixner wrote: > On Mon, 15 Sep 2014, Joonwoo Park wrote: > > +#ifdef CONFIG_SMP > > +static struct tvec_base *tvec_base_deferral = &boot_tvec_bases; > > +#endif > > In principle I like the idea of a deferrable whee

[PATCH v2 RESEND/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2014-09-15 Thread Joonwoo Park
le, introduce a common timer base which is only for cpu unbound deferrable timers to make those are indeed cpu unbound so that can be scheduled by any of non idle cpus. This common timer fixes scalability issue of delayed work and all other cpu unbound deferrable timer using implementations. CC: Thomas

Re: [PATCH v5] sched: fix incorrect wait time and wait count statistics

2015-11-12 Thread Joonwoo Park
SK_ON_RQ_MIGRATING while dequeuing and enqueuing due to migration. To: Ingo Molnar To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org Signed-off-by: Joonwoo Park --- Changes in v2: * Set p->on_rq = TASK_ON_RQ_MIGRATING while doing migration dequeue/enqueue and check whether

[PATCH v3] sched: fix incorrect wait time and wait count statistics

2015-10-27 Thread Joonwoo Park
SK_ON_RQ_MIGRATING while dequeuing and enqueuing due to migration. To: Ingo Molnar To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org Signed-off-by: Joonwoo Park --- Changes in v2: * Set p->on_rq = TASK_ON_RQ_MIGRATING while doing migration dequeue/enqueue and check whether

Re: [PATCH] sched: fix incorrect wait time and wait count statistics

2015-10-27 Thread Joonwoo Park
On Tue, Oct 27, 2015 at 01:57:28PM +0100, Peter Zijlstra wrote: > > (Excessive quoting for Olav) > > On Mon, Oct 26, 2015 at 06:44:48PM -0700, Joonwoo Park wrote: > > On 10/25/2015 03:26 AM, Peter Zijlstra wrote: > > > > Also note that on both sites we also set

[PATCH v4] sched: fix incorrect wait time and wait count statistics

2015-10-27 Thread Joonwoo Park
ask->on_rq with TASK_ON_RQ_MIGRATING while dequeuing and enqueuing due to migration. To: Ingo Molnar To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org Signed-off-by: Joonwoo Park --- Changes in v2: * Set p->on_rq = TASK_ON_RQ_MIGRATING while doing migration dequeue/enqueue and check whether

Re: [PATCH v4] sched: fix incorrect wait time and wait count statistics

2015-11-06 Thread Joonwoo Park
On Fri, Nov 06, 2015 at 02:57:49PM +0100, Peter Zijlstra wrote: > On Tue, Oct 27, 2015 at 09:46:53PM -0700, Joonwoo Park wrote: > > @@ -1272,6 +1272,15 @@ void set_task_cpu(struct task_struct *p, unsigned > > int new_cpu) > > WARN_ON_ONCE(p->state != TASK_RUNNING &a

Re: [PATCH 08/15] perf tools: Introduce timestamp_in_usec()

2016-10-27 Thread Joonwoo Park
Also I found that sched map has similar problem, fix it too. Reported-and-Acked-by: Joonwoo Park Hmm.. I didn't ACK this patch because of bug I commented at https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1256724.html s/work_list->max_lat/work_list->max_lat_at/ Do

Re: [GIT PULL] Re: [PATCH 08/15] perf tools: Introduce timestamp_in_usec()

2016-10-28 Thread Joonwoo Park
On 10/28/2016 10:39 AM, Ingo Molnar wrote: * Arnaldo Carvalho de Melo wrote: Em Fri, Oct 28, 2016 at 11:30:41AM -0200, Arnaldo Carvalho de Melo escreveu: Em Fri, Oct 28, 2016 at 10:53:38AM -0200, Arnaldo Carvalho de Melo escreveu: Em Thu, Oct 27, 2016 at 04:14:55PM -0700, Joonwoo Park

[PATCH] timers: Fix timer inaccuracy

2016-11-09 Thread Joonwoo Park
ijlstra Cc: linux-kernel@vger.kernel.org Signed-off-by: Joonwoo Park --- kernel/time/timer.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index c611c47..f6ad4e9 100644 --- a/kernel/time/timer.c +++ b/kernel/time/t

Re: [PATCH] timers: Fix timer inaccuracy

2016-11-09 Thread Joonwoo Park
On 11/09/2016 01:56 AM, Thomas Gleixner wrote: On Wed, 9 Nov 2016, Joonwoo Park wrote: When a new timer list enqueued into the time wheel, array index for the given expiry time is: expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl); idx = LVL_OFFS(lvl) + (expires & LVL_M

Re: [PATCH 3/3] perf tools: Introduce timestamp_in_usec()

2016-10-24 Thread Joonwoo Park
p has similar problem, fix it too. Reported-by: Joonwoo Park Sorry I was busy with something else so didn't have chance to follow up on my initial proposal and thanks for take caring of this. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 9 ++--- tools/perf/builtin-sc

Re: [PATCH] cpuset: handle race between CPU hotplug and cpuset_hotplug_work

2016-09-11 Thread Joonwoo Park
On Mon, Sep 12, 2016 at 10:48:31AM +0800, Zefan Li wrote: > Cc: Tejun > > On 2016/9/9 8:41, Joonwoo Park wrote: > > Discrepancy between cpu_online_mask and cpuset's effective CPU masks on > > cpuset hierarchy is inevitable since cpuset defers updating of > > ef

  1   2   >