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>] [day] [month] [year] [list]
Date:	10 Dec 2010 14:00:47 -0500
From:	"George Spelvin" <linux@...izon.com>
To:	linux-kernel@...r.kernel.org, peterz@...radead.org
Cc:	linux@...izon.com
Subject: Re: [PATCH 1/6] mlock: only hold mmap_sem in shared mode when

How about (bugfixed):

bool cond_break_mutex(struct mutex *mutex)
{
	if (!mutex_is_contended(mutex))
		return false;
	mutex_unlock(mutex);
	mutex_lock(mutex);
	return true;
}

It would be possible to share work between the unlock and lock slowpaths
(particularly the wait_lock acquisition), but that's probably more
maintenance effort than it's worth.
--
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