Mercurial > illumos > illumos-gate
changeset 13756:281242a86f07
417 Stale OpenOwner entries are not reaped for active clients
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: Gordon Ross <gwr@nexenta.com>
author | Vitaliy Gusev <gusev.vitaliy@nexenta.com> |
---|---|
date | Sun, 22 Jul 2012 00:00:47 +0000 |
parents | 80fe82480d1e |
children | 2e70a48f5fe2 |
files | usr/src/uts/common/fs/nfs/nfs4_state.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/fs/nfs/nfs4_state.c Tue Jul 24 04:11:09 2012 -0500 +++ b/usr/src/uts/common/fs/nfs/nfs4_state.c Sun Jul 22 00:00:47 2012 +0000 @@ -20,6 +20,7 @@ */ /* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. */ #include <sys/systm.h> @@ -2021,15 +2022,12 @@ return (&oo->ro_owner); } +/* ARGSUSED */ static bool_t rfs4_openowner_expiry(rfs4_entry_t u_entry) { - rfs4_openowner_t *oo = (rfs4_openowner_t *)u_entry; - - if (rfs4_dbe_is_invalid(oo->ro_dbe)) - return (TRUE); - return ((gethrestime_sec() - oo->ro_client->rc_last_access - > rfs4_lease_time)); + /* openstateid held us and did all needed delay */ + return (TRUE); } static void