Project

General

Profile

Actions

Bug #4842

open

NFSv4 locking implementation at server is unfair

Added by Marcel Telka over 8 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
nfs - NFS server and client
Start date:
2014-05-03
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

According the RFC 7530, section 9.4. Blocking Locks, the NFSv4 server should maintain an ordered list of pending blocking locks. This is not our case, and thus the locking could be seen as unfair from NFSv4 clients.

To reproduce the issue you could use the attached lock.c test:

# gcc -o lock lock.c 
# ./lock /mnt/file
child: locked
child: locked
child: locked
child: locked
child: locked
child: locked
child: locked
child: locked
child: locked
^C
#

Note: /mnt is mounted from other illumos box using NFSv4 (-o vers=4).

When the same test is run either locally, or over NFSv3, the result is following (as one would expect):

# ./lock /tmp/file
child: locked
parent: locked
child: locked
parent: locked
child: locked
parent: locked
child: locked
parent: locked
^C
#

Files

lock.c (724 Bytes) lock.c Marcel Telka, 2014-05-03 11:26 PM

Related issues

Related to illumos gate - Bug #4837: NFSv4 client lock retry delay upper limit should be shorterNew2014-05-02

Actions
Actions #1

Updated by Marcel Telka over 8 years ago

  • File deleted (lock.c)
Actions #2

Updated by Marcel Telka over 8 years ago

  • File lock.c added
Actions #3

Updated by Marcel Telka over 8 years ago

  • File deleted (lock.c)
Actions #4

Updated by Marcel Telka over 8 years ago

  • File lock.c added
Actions #5

Updated by Marcel Telka over 8 years ago

  • File deleted (lock.c)
Actions #6

Updated by Marcel Telka over 8 years ago

Actions #7

Updated by Marcel Telka over 8 years ago

  • Subject changed from NFSv4 locking at server is not fair to NFSv4 locking implementation at server is unfair
Actions #8

Updated by Marcel Telka almost 6 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF