Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53584f66 authored by fanchaoting's avatar fanchaoting Committed by J. Bruce Fields
Browse files

nfsd4: remove some useless code



The "list_empty(&oo->oo_owner.so_stateids)" is aways true, so remove it.

Signed-off-by: default avatarfanchaoting <fanchaoting@cn.fujitsu.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 3bd64a5b
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -3919,7 +3919,6 @@ nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
			 * In the 4.0 case we need to keep the owners around a
			 * In the 4.0 case we need to keep the owners around a
			 * little while to handle CLOSE replay.
			 * little while to handle CLOSE replay.
			 */
			 */
			if (list_empty(&oo->oo_owner.so_stateids))
			move_to_close_lru(oo, SVC_NET(rqstp));
			move_to_close_lru(oo, SVC_NET(rqstp));
		}
		}
	}
	}