Skip to content

Commit 97eb89b

Browse files
Benny HalevyJ. Bruce Fields
authored andcommitted
nfsd: do_probe_callback should not clear rpc stats
Now that cb_stats are static (since commit ff7d975) there's no need to clear them. Initially I thought it might make sense to do that every callback probing but since the stats are per-program and they are shared between possibly several client callback instances, zeroing them out seems like the wrong thing to do. Note that that commit also introduced a bug since stats.program is also being cleared in the process and it is not restored after the memset as it used to be. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
1 parent db820d6 commit 97eb89b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎fs/nfsd/nfs4callback.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,6 @@ static int do_probe_callback(void *data)
397397
addr.sin_port = htons(cb->cb_port);
398398
addr.sin_addr.s_addr = htonl(cb->cb_addr);
399399

400-
/* Initialize rpc_stat */
401-
memset(args.program->stats, 0, sizeof(struct rpc_stat));
402-
403400
/* Create RPC client */
404401
client = rpc_create(&args);
405402
if (IS_ERR(client)) {

0 commit comments

Comments
 (0)