NLM/lockd: remove b_done

We never actually set the b_done field any more; it's always zero.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from af8412d4283ef91356e65e0ed9b025b376aebded commit)

authored by J. Bruce Fields and committed by Trond Myklebust f3d43c76 e4e20512

+3 -10
+3 -9
fs/lockd/svclock.c
··· 638 if (task->tk_status < 0) { 639 /* RPC error: Re-insert for retransmission */ 640 timeout = 10 * HZ; 641 - } else if (block->b_done) { 642 - /* Block already removed, kill it for real */ 643 - timeout = 0; 644 } else { 645 /* Call was successful, now wait for client callback */ 646 timeout = 60 * HZ; ··· 706 break; 707 if (time_after(block->b_when,jiffies)) 708 break; 709 - dprintk("nlmsvc_retry_blocked(%p, when=%ld, done=%d)\n", 710 - block, block->b_when, block->b_done); 711 kref_get(&block->b_count); 712 - if (block->b_done) 713 - nlmsvc_unlink_block(block); 714 - else 715 - nlmsvc_grant_blocked(block); 716 nlmsvc_release_block(block); 717 } 718
··· 638 if (task->tk_status < 0) { 639 /* RPC error: Re-insert for retransmission */ 640 timeout = 10 * HZ; 641 } else { 642 /* Call was successful, now wait for client callback */ 643 timeout = 60 * HZ; ··· 709 break; 710 if (time_after(block->b_when,jiffies)) 711 break; 712 + dprintk("nlmsvc_retry_blocked(%p, when=%ld)\n", 713 + block, block->b_when); 714 kref_get(&block->b_count); 715 + nlmsvc_grant_blocked(block); 716 nlmsvc_release_block(block); 717 } 718
-1
include/linux/lockd/lockd.h
··· 123 unsigned int b_id; /* block id */ 124 unsigned char b_queued; /* re-queued */ 125 unsigned char b_granted; /* VFS granted lock */ 126 - unsigned char b_done; /* callback complete */ 127 struct nlm_file * b_file; /* file in question */ 128 }; 129
··· 123 unsigned int b_id; /* block id */ 124 unsigned char b_queued; /* re-queued */ 125 unsigned char b_granted; /* VFS granted lock */ 126 struct nlm_file * b_file; /* file in question */ 127 }; 128