Commit 244cc19
lockd: server should unlock lock if client rejects the grant
Currently lockd just dequeues the block and ignores it if the client
sends a GRANT_RES with a status of nlm_lck_denied. That status is an
indicator that the client has rejected the lock, so the right thing to
do is to unlock the lock we were trying to grant.
Reported-by: Yongcheng Yang <yoyang@redhat.com>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2063818
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 2005f5b commit 244cc19
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| 957 | + | |
| 958 | + | |
957 | 959 | | |
958 | 960 | | |
959 | 961 | | |
960 | 962 | | |
961 | 963 | | |
962 | 964 | | |
963 | | - | |
| 965 | + | |
| 966 | + | |
964 | 967 | | |
965 | 968 | | |
966 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
967 | 980 | | |
968 | | - | |
969 | | - | |
| 981 | + | |
| 982 | + | |
970 | 983 | | |
971 | 984 | | |
972 | 985 | | |
| |||
0 commit comments