lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <4B5D3912.9030802@intel.com> Date: Sun, 24 Jan 2010 22:24:18 -0800 From: John Fastabend <john.r.fastabend@...el.com> To: David Miller <davem@...emloft.net> CC: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "gospo@...hat.com" <gospo@...hat.com> Subject: Re: [net-next-2.6 PATCH] ixgbe: only process one ixgbe_watchdog_task at a time. David Miller wrote: > From: Jeff Kirsher <jeffrey.t.kirsher@...el.com> > Date: Sat, 23 Jan 2010 02:17:31 -0800 > > >> diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c >> index 8d206f7..cbc62db 100644 >> --- a/drivers/net/ixgbe/ixgbe_main.c >> +++ b/drivers/net/ixgbe/ixgbe_main.c >> @@ -5013,7 +5013,8 @@ static void ixgbe_watchdog_task(struct work_struct *work) >> struct ixgbe_ring *tx_ring; >> int some_tx_pending = 0; >> >> - adapter->flags |= IXGBE_FLAG_IN_WATCHDOG_TASK; >> + while (test_and_set_bit(__IXGBE_IN_WATCHDOG_TASK, &adapter->state)) >> + msleep(1); >> >> > > I think using a mutex() would better serve you here. > I'll make this change and resubmit. Thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists