diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2017-10-05 19:18:02 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2017-10-05 19:18:02 +0000 |
commit | d07e22cdd8b156267a70d2be0f2af2c5081d6dd5 (patch) | |
tree | cf91f68e2025c93b6be0272f1ce506e5d858c51a /sys/fs/nfs | |
parent | 6cdf28b7ad1410ac40403ba0efcbe10836b01234 (diff) | |
download | src-d07e22cdd8b156267a70d2be0f2af2c5081d6dd5.tar.gz src-d07e22cdd8b156267a70d2be0f2af2c5081d6dd5.zip |
locks: take the number of readers into account when waiting
Previous code would always spin once before checking the lock. But a lock
with e.g. 6 readers is not going to become free in the duration of once spin
even if they start draining immediately.
Conservatively perform one for each reader.
Note that the total number of allowed spins is still extremely small and is
subject to change later.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=324335
Diffstat (limited to 'sys/fs/nfs')
0 files changed, 0 insertions, 0 deletions