]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sfc: Fix polling for slow MCDI operations
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 13 Jan 2010 04:34:25 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jan 2010 01:12:47 +0000 (17:12 -0800)
commit55029c1d65158aea9672c5dfadb43a57f23e3100
tree2222cdb3a0c81256f89d5e26b299239e66497769
parentbaf86c9d36826fab0160251bbc87dfab3af48a21
sfc: Fix polling for slow MCDI operations

When the interface is down and we are using polled mode for MCDI
operations, we busy-wait for completion for approximately 1 jiffy
using udelay() and then back off to schedule().  But the completion
will not wake the task, since we are using polled mode!  We must use
schedule_timeout_uninterruptible() instead.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/mcdi.c