Commit c7c3ee40 authored by Trond Myklebust's avatar Trond Myklebust

NFSv2/v3 locking: A patch to ensure that blocks which are not going to time out

    are placed last on the ordered list nlm_block (problem reported by Olaf
    Kirch).
parent a9034ac9
...@@ -64,7 +64,7 @@ nlmsvc_insert_block(struct nlm_block *block, unsigned long when) ...@@ -64,7 +64,7 @@ nlmsvc_insert_block(struct nlm_block *block, unsigned long when)
if (when != NLM_NEVER) { if (when != NLM_NEVER) {
if ((when += jiffies) == NLM_NEVER) if ((when += jiffies) == NLM_NEVER)
when ++; when ++;
while ((b = *bp) && time_before_eq(b->b_when,when)) while ((b = *bp) && time_before_eq(b->b_when,when) && b->b_when != NLM_NEVER)
bp = &b->b_next; bp = &b->b_next;
} else } else
while ((b = *bp)) while ((b = *bp))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment