NFSv4.0: Fix the wake up of the next waiter in nfs_release_seqid()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 8 Nov 2024 16:41:21 +0000 (11:41 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 9 Nov 2024 16:01:29 +0000 (11:01 -0500)
commitc968fd23c68e9929ab6cad4faffc8ea603e98e5d
tree1a47b7aa5fddfd2dbd9bb319900c4ea8499c5faa
parent675d4566e599bab1a225d418bbf7a53100367978
NFSv4.0: Fix the wake up of the next waiter in nfs_release_seqid()

There is no need to wake up another waiter on the seqid list unless the
seqid being removed is at the head of the list, and so is relinquishing
control of the sequence counter to the next entry.

Reviewed-by: Yang Erkun <yangerkun@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4state.c