patch-2.4.0-test11 linux/net/netlink/af_netlink.c
Next file: linux/net/socket.c
Previous file: linux/net/lapb/lapb_in.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Nov 11 19:02:41 2000
- Orig file:
v2.4.0-test10/linux/net/netlink/af_netlink.c
- Orig date:
Tue Oct 31 12:42:27 2000
diff -u --recursive --new-file v2.4.0-test10/linux/net/netlink/af_netlink.c linux/net/netlink/af_netlink.c
@@ -96,7 +96,7 @@
#endif
}
-/* This lock without TASK_EXCLUSIVE is good on UP and it is _very_ bad on SMP.
+/* This lock without WQ_FLAG_EXCLUSIVE is good on UP and it is _very_ bad on SMP.
* Look, when several writers sleep and reader wakes them up, all but one
* immediately hit write lock and grab all the cpus. Exclusive sleep solves
* this, _but_ remember, it adds useless work on UP machines.
@@ -111,7 +111,7 @@
add_wait_queue_exclusive(&nl_table_wait, &wait);
for(;;) {
- set_current_state(TASK_UNINTERRUPTIBLE|TASK_EXCLUSIVE);
+ set_current_state(TASK_UNINTERRUPTIBLE);
if (atomic_read(&nl_table_users) == 0)
break;
write_unlock_bh(&nl_table_lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)