@@ -171,7 +171,7 @@ renew_client_locked(struct nfs4_client *clp)
171
171
}
172
172
173
173
list_move_tail (& clp -> cl_lru , & nn -> client_lru );
174
- clp -> cl_time = ktime_get_boottime_seconds ();
174
+ clp -> cl_time = ktime_get_seconds ();
175
175
}
176
176
177
177
static void put_client_renew_locked (struct nfs4_client * clp )
@@ -908,7 +908,7 @@ struct nfs4_cpntf_state *nfs4_alloc_init_cpntf_state(struct nfsd_net *nn,
908
908
cps = kzalloc (sizeof (struct nfs4_cpntf_state ), GFP_KERNEL );
909
909
if (!cps )
910
910
return NULL ;
911
- cps -> cpntf_time = ktime_get_boottime_seconds ();
911
+ cps -> cpntf_time = ktime_get_seconds ();
912
912
refcount_set (& cps -> cp_stateid .sc_count , 1 );
913
913
if (!nfs4_init_cp_state (nn , & cps -> cp_stateid , NFS4_COPYNOTIFY_STID ))
914
914
goto out_free ;
@@ -2764,7 +2764,7 @@ static struct nfs4_client *create_client(struct xdr_netobj name,
2764
2764
gen_clid (clp , nn );
2765
2765
kref_init (& clp -> cl_nfsdfs .cl_ref );
2766
2766
nfsd4_init_cb (& clp -> cl_cb_null , clp , NULL , NFSPROC4_CLNT_CB_NULL );
2767
- clp -> cl_time = ktime_get_boottime_seconds ();
2767
+ clp -> cl_time = ktime_get_seconds ();
2768
2768
clear_bit (0 , & clp -> cl_cb_slot_busy );
2769
2769
copy_verf (clp , verf );
2770
2770
memcpy (& clp -> cl_addr , sa , sizeof (struct sockaddr_storage ));
@@ -4496,7 +4496,7 @@ move_to_close_lru(struct nfs4_ol_stateid *s, struct net *net)
4496
4496
last = oo -> oo_last_closed_stid ;
4497
4497
oo -> oo_last_closed_stid = s ;
4498
4498
list_move_tail (& oo -> oo_close_lru , & nn -> close_lru );
4499
- oo -> oo_time = ktime_get_boottime_seconds ();
4499
+ oo -> oo_time = ktime_get_seconds ();
4500
4500
spin_unlock (& nn -> client_lock );
4501
4501
if (last )
4502
4502
nfs4_put_stid (& last -> st_stid );
@@ -4608,7 +4608,7 @@ static void nfsd4_cb_recall_prepare(struct nfsd4_callback *cb)
4608
4608
*/
4609
4609
spin_lock (& state_lock );
4610
4610
if (delegation_hashed (dp ) && dp -> dl_time == 0 ) {
4611
- dp -> dl_time = ktime_get_boottime_seconds ();
4611
+ dp -> dl_time = ktime_get_seconds ();
4612
4612
list_add_tail (& dp -> dl_recall_lru , & nn -> del_recall_lru );
4613
4613
}
4614
4614
spin_unlock (& state_lock );
@@ -5505,7 +5505,7 @@ static bool clients_still_reclaiming(struct nfsd_net *nn)
5505
5505
* If we've given them *two* lease times to reclaim, and they're
5506
5506
* still not done, give up:
5507
5507
*/
5508
- if (ktime_get_boottime_seconds () > double_grace_period_end )
5508
+ if (ktime_get_seconds () > double_grace_period_end )
5509
5509
return false;
5510
5510
return true;
5511
5511
}
@@ -5599,7 +5599,7 @@ nfs4_laundromat(struct nfsd_net *nn)
5599
5599
struct nfsd4_blocked_lock * nbl ;
5600
5600
struct list_head * pos , * next , reaplist ;
5601
5601
struct laundry_time lt = {
5602
- .cutoff = ktime_get_boottime_seconds () - nn -> nfsd4_lease ,
5602
+ .cutoff = ktime_get_seconds () - nn -> nfsd4_lease ,
5603
5603
.new_timeo = nn -> nfsd4_lease
5604
5604
};
5605
5605
struct nfs4_cpntf_state * cps ;
@@ -6007,7 +6007,7 @@ static __be32 find_cpntf_state(struct nfsd_net *nn, stateid_t *st,
6007
6007
if (status )
6008
6008
return status ;
6009
6009
6010
- cps -> cpntf_time = ktime_get_boottime_seconds ();
6010
+ cps -> cpntf_time = ktime_get_seconds ();
6011
6011
6012
6012
status = nfserr_expired ;
6013
6013
found = lookup_clientid (& cps -> cp_p_clid , true, nn );
@@ -6990,7 +6990,7 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
6990
6990
}
6991
6991
6992
6992
if (fl_flags & FL_SLEEP ) {
6993
- nbl -> nbl_time = ktime_get_boottime_seconds ();
6993
+ nbl -> nbl_time = ktime_get_seconds ();
6994
6994
spin_lock (& nn -> blocked_locks_lock );
6995
6995
list_add_tail (& nbl -> nbl_list , & lock_sop -> lo_blocked );
6996
6996
list_add_tail (& nbl -> nbl_lru , & nn -> blocked_locks_lru );
0 commit comments