[patch 2/3] openmosix/openmosix-alloc_fd_bitmap-spinlock-protection.patch
Florian Delizy <[email protected]> Fri, 13 Oct 2006 18:58:00 +0200
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
This patch adds read/write locks on structures of alloc_fd_bitmap We are on our way to setup a second git server to distribute the code in an easier way Florian ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel
openmosix-alloc_fd_bitmap-spinlock-protection.patch
(text/x-patch, 576 B)
Index: linux/hpc/kcom.c =================================================================== --- linux.orig/hpc/kcom.c 2006-10-13 15:57:38.000000000 +0200 +++ linux/hpc/kcom.c 2006-10-13 15:58:56.000000000 +0200 @@ -143,10 +143,10 @@ return 0; n = max(fd,max(fd4, fd6)); - // spin_lock(&kcom_nodes_lock); - list_for_each_entry(node, &kcom_nodes, list) - n = max(node->fd, n); - // spin_unlock(&kcom_nodes_lock); + + read_lock( &kcom_nodes_lock ); + list_for_each_entry(node, &kcom_nodes, list) n = max(node->fd, n); + read_unlock( &kcom_nodes_lock ); maxfds = n;