lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200804121232.00807.ioe-lkml@rameria.de>
Date:	Sat, 12 Apr 2008 12:31:59 +0200
From:	Ingo Oeser <ioe-lkml@...eria.de>
To:	Daniel Walker <dwalker@...sta.com>
Cc:	Matthew Wilcox <matthew@....cx>, linux-kernel@...r.kernel.org,
	Ingo Molnar <mingo@...e.hu>, Linus Torvalds <torvalds@...l.org>
Subject: Re: [PATCH] Replace completions with semaphores

Hi Daniel,

On Saturday 12 April 2008, Daniel Walker wrote:
> From my perspective it should be keep completions , and remove
> semaphores.. The problem with semaphores is the lack of a strict API, 
> and loose usage. 

Seconded!

Ask any software engineer, to describe what a semaphore is and
how it behaves. You'll get the full spectrum of possible semaphore
implementation options. Ask any advanced software engineer and he'll
ask "What kind of semaphore?".

So let them die ASAP!

> At times I've spent hours trying to figure out what a semaphore 
> is doing, or suppose to be doing. 

Same here. Or figuring out what kind of semphore behavior the developer
expected.

> If we enforce strict usage of semaphores, then we'll basically reproduce
> mutex usage, and we have a generic mutex already..

Or have different API for using the same semaphores in different 
creative ways. It might be hard to implement lockdep for that :-)

No, I'm happy that Linux has so many more advanced concurrency concepts,
that the pre-dinosaur locking mechanism (semaphore) is usually 
the last on your list.


Best Regards

Ingo Oeser
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ