freebsd-skq/share/man
kib cf11d25e18 Fix two issues with lockmgr(9) LK_CAN_SHARE() test, which determines
whether the shared request for already shared-locked lock could be
granted.  Both problems result in the exclusive locker starvation.

The concurrent exclusive request is indicated by either
LK_EXCLUSIVE_WAITERS or LK_EXCLUSIVE_SPINNERS flags.  The reverse
condition, i.e. no exclusive waiters, must check that both flags are
cleared.

Add a flag LK_NODDLKTREAT for shared lock request to indicate that
current thread guarantees that it does not own the lock in shared
mode.  This turns back the exclusive lock starvation avoidance code;
see man page update for detailed description.

Use LK_NODDLKTREAT when doing lookup(9).

Reported and tested by:	pho
No objections from:	attilio
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2014-11-02 13:10:31 +00:00
..
man1 use .Mt to mark up email addresses consistently (part6) 2014-06-23 08:27:27 +00:00
man3 Correct a typo: this is the manpage for pthread_cleanup_pop, not push. 2014-10-27 15:45:37 +00:00
man4 Mention VAAI and ODX in ctl(4). 2014-10-26 13:30:53 +00:00
man5 Regenerate after r273418 2014-10-21 20:41:19 +00:00
man6 multiple: Remove 3rd clause from BSD license where approved by the 2014-03-14 03:07:51 +00:00
man7 add an rc.d script to automatically grow the specified FS... It has 2014-11-02 00:11:25 +00:00
man8 Remove an extra copy of hv_kvp_daemon(8) [1]. 2014-10-27 21:29:42 +00:00
man9 Fix two issues with lockmgr(9) LK_CAN_SHARE() test, which determines 2014-11-02 13:10:31 +00:00
Makefile Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00