Re: [PATCH 3/3] i386: use ACPI to power off the machine

2014-06-22 Thread David Michael
Hi, On Sat, May 3, 2014 at 4:56 AM, Justus Winter <4win...@informatik.uni-hamburg.de> wrote: > However, when I use --enable-device-drivers=qemu it doesn't work: > > db> halt > Looking for RSDP. Scanning EBDA > Looking for RSDP. Scanning EBDA > rsdp1=0 > > Hum. Maybe someone overwrote our precious

Re: [PATCH] nscd: Remove unused typedef and variable.

2014-06-22 Thread Ondřej Bílka
On Sun, Jun 22, 2014 at 11:55:43AM +0200, Ludovic Courtès wrote: > The attached patch removed the unused ‘thread_info_t’ typedef and the > ‘thread_info’ variable from nscd.c. The former conflicts with a GNU Mach > typedef, and the latter conflicts with a GNU Mach function declaration: >

[PATCH 7/8] libports: use a global hash table for the lookups

2014-06-22 Thread Justus Winter
Previously, libports used a hash table per port bucket. This makes looking up a port difficult if one does not know the port bucket, as one has to iterate over all buckets and do a hash table lookup each. Having to iterate over the buckets makes it necessary to keep a list of all buckets, which h

[PATCH 8/8] libports: lock-less reference counting for port_info objects

2014-06-22 Thread Justus Winter
* libports/ports.h (struct port_info): Use the new type. * libports/lookup-port.c: No need to lock _ports_lock anymore. * libports/bucket-iterate.c: Likewise. * libports/complete-deallocate.c: Check if someone reacquired a reference through a hash table lookup. * libports/create-internal.c: Use the

[PATCH 5/8] tmpfs: use a seperate lock to protect all_nodes

2014-06-22 Thread Justus Winter
Previously, tmpfs used diskfs_node_refcnt_lock to serialize access to the all_nodes and some other related global state related to memory consumption. Use a separate lock to protect all_nodes, and atomic operations to access the state related to memory consumption. Adjust the reference counting ac

[PATCH 6/8] libdiskfs: lock-less reference counting of nodes

2014-06-22 Thread Justus Winter
* libdiskfs/diskfs.h (struct node): Use refcounts_t for reference counting. (diskfs_node_refcnt_lock): Remove. (diskfs_node_norefs,diskfs_drop_node): Change comments accordingly. * libdiskfs/init-init.c: Likewise. * libdiskfs/node-drop.c: Likewise. * libdiskfs/node-make.c: Likewise. * libdiskfs/nod

[PATCH 2/8] ext2fs: use a seperate lock to protect nodehash

2014-06-22 Thread Justus Winter
Previously, ext2fs used diskfs_node_refcnt_lock to serialize access to the nodehash. Use a separate lock to protect nodehash. Adjust the reference counting accordingly. Every node in the nodehash carries a light reference. When we are asked to give up that light reference, we reacquire our lock

[PATCH 1/8] ext2fs: use correct type for block numbers

2014-06-22 Thread Justus Winter
* ext2fs/dir.c (count_dirents): Use block_t for nb. (diskfs_get_directs): Likewise for blkno, nblks. --- ext2fs/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext2fs/dir.c b/ext2fs/dir.c index 337314c..470b7e9 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -823,7

[PATCH 3/8] fatfs: use a seperate lock to protect nodehash

2014-06-22 Thread Justus Winter
Previously, fatfs used diskfs_node_refcnt_lock to serialize access to the nodehash. Use a separate lock to protect nodehash. Adjust the reference counting accordingly. Every node in the nodehash carries a light reference. When we are asked to give up that light reference, we reacquire our lock

[PATCH 4/8] isofs: use a seperate lock to protect node_cache

2014-06-22 Thread Justus Winter
Previously, isofs used diskfs_node_refcnt_lock to serialize access to the node_cache. Use a separate lock to protect node_cache. Adjust the reference counting accordingly. Every node in the node_cache carries a light reference. When we are asked to give up that light reference, we reacquire our

[PATCH] libdiskfs: fix deadlock

2014-06-22 Thread Justus Winter
Previously, libdiskfs would deadlock on contention on renamedirlock due to the lock being taken spuriously. Found using fsstress from the Linux Test Project. * libdiskfs/dir-rename.c (diskfs_S_dir_rename): Remove spurious pthread_mutex_lock. --- libdiskfs/dir-rename.c | 1 - 1 file changed, 1 de

[PATCH] nscd: Remove unused typedef and variable.

2014-06-22 Thread Ludovic Courtès
The attached patch removed the unused ‘thread_info_t’ typedef and the ‘thread_info’ variable from nscd.c. The former conflicts with a GNU Mach typedef, and the latter conflicts with a GNU Mach function declaration: . Tested on x86

Re: Conflicting ‘thread_info_t’ declaration between nscd and Mach

2014-06-22 Thread Ludovic Courtès
Pino Toscano skribis: > On Saturday 21 June 2014 23:29:43 Ludovic Courtès wrote: >> Roland McGrath skribis: >> > Send a patch upstream to libc to avoid using the *_t name space for >> > non-public type names like the one in nscd. We'll take it. >> >> Great, will do. >> >> Manolis: could you c