]> git.baikalelectronics.ru Git - kernel.git/commit
LOCKD: Ensure that nlmclnt_block resets block->b_status after a server reboot
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 21 Apr 2013 22:01:06 +0000 (18:01 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 21 Apr 2013 22:08:42 +0000 (18:08 -0400)
commit2be2fda22ffbb873a2229c87aa67043d6fd97e50
tree5aa23c37416e71ef28c593bcf83bdaca9fdd0b7a
parentbb35c84447f26a1e8d1181784748acf8f6a38c0d
LOCKD: Ensure that nlmclnt_block resets block->b_status after a server reboot

After a server reboot, the reclaimer thread will recover all the existing
locks. For locks that are blocked, however, it will change the value
of block->b_status to nlm_lck_denied_grace_period in order to signal that
they need to wake up and resend the original blocking lock request.

Due to a bug, however, the block->b_status never gets reset after the
blocked locks have been woken up, and so the process goes into an
infinite loop of resends until the blocked lock is satisfied.

Reported-by: Marc Eshel <eshel@us.ibm.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/lockd/clntlock.c
fs/lockd/clntproc.c