ixgbe: force unlock on timeout
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 8 Apr 2011 01:23:59 +0000 (01:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 15 May 2011 00:57:01 +0000 (17:57 -0700)
commit51275d37a85bc82bda7e5b179ee520e85e66e782
tree6afdbc235bc8314473de415c2a56760b69f3e769
parenta1cbb15c13971bd5d41626e9e5ced9f9de132c47
ixgbe: force unlock on timeout

The semaphore can be in locked state upon driver load, particularly
on 82598 if a machine is rebooted due to panic and the semaphore was
acquired just prior to the panic.

This patch unlocks the semaphore if it times out.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_common.c