Commit 8a7c9f18 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

[8139TOO]: Use rtnl_lock_interruptible()

The 8139too thread needs to use rtnl_lock_interruptible so it can avoid
doing the actual work once it's been kill_proc()ed on module removal
time.

Based on debugging and an earlier patch that adds a driver-private
semaphore from Herbert Xu.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a68c40c3
......@@ -1636,7 +1636,8 @@ static int rtl8139_thread (void *data)
if (tp->time_to_die)
break;
rtnl_lock ();
if (rtnl_lock_interruptible ())
break;
rtl8139_thread_iter (dev, tp, tp->mmio_addr);
rtnl_unlock ();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment