nfsd: uniquify cl_confirm values
Using a counter instead of the nanoseconds value seems more likely to produce a unique cl_confirm. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
@@ -491,15 +491,14 @@ gen_clid(struct nfs4_client *clp) {
|
|||||||
clp->cl_clientid.cl_id = current_clientid++;
|
clp->cl_clientid.cl_id = current_clientid++;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void gen_confirm(struct nfs4_client *clp)
|
||||||
gen_confirm(struct nfs4_client *clp) {
|
{
|
||||||
struct timespec tv;
|
static u32 i;
|
||||||
u32 * p;
|
u32 *p;
|
||||||
|
|
||||||
tv = CURRENT_TIME;
|
|
||||||
p = (u32 *)clp->cl_confirm.data;
|
p = (u32 *)clp->cl_confirm.data;
|
||||||
*p++ = tv.tv_sec;
|
*p++ = get_seconds();
|
||||||
*p++ = tv.tv_nsec;
|
*p++ = i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Reference in New Issue
Block a user