Re: [PATCH 2/2] NFS: add I/O performance counters

2005-03-17 Thread Andrew Morton
[EMAIL PROTECTED] (Chuck Lever) wrote: > > +static inline void nfs_inc_stats(struct inode *inode, unsigned int stat) > +{ > + struct nfs_iostats *iostats = NFS_SERVER(inode)->io_stats; > + iostats[smp_processor_id()].counts[stat]++; > +} The use of smp_processor_id() outside locks should s

[PATCH 2/2] NFS: add I/O performance counters

2005-03-17 Thread Chuck Lever
Add an extensible per-superblock performance counter facility to the NFS client. This facility mimics the counters available for block devices and for networking. Expose these new counters via /proc/self/mountstats. Version: Mon, 14 Mar 2005 17:06:12 -0500 Signed-off-by: Chuck Lever <[EM