diff options
| author | Hu Weiwen <[email protected]> | 2021-11-22 14:22:12 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2021-12-01 16:08:26 +0000 |
| commit | 973e5245637accc4002843f6b888495a6a7762bc (patch) | |
| tree | c4cf2d4ccbdaa812bfa6a48621a7bddd52f8294c /drivers/net/xen-netfront.c | |
| parent | Linux 5.16-rc3 (diff) | |
| download | kernel-973e5245637accc4002843f6b888495a6a7762bc.tar.gz kernel-973e5245637accc4002843f6b888495a6a7762bc.zip | |
ceph: fix duplicate increment of opened_inodes metric
opened_inodes is incremented twice when the same inode is opened twice
with O_RDONLY and O_WRONLY respectively.
To reproduce, run this python script, then check the metrics:
import os
for _ in range(10000):
fd_r = os.open('a', os.O_RDONLY)
fd_w = os.open('a', os.O_WRONLY)
os.close(fd_r)
os.close(fd_w)
Fixes: 1dd8d4708136 ("ceph: metrics for opened files, pinned caps and opened inodes")
Signed-off-by: Hu Weiwen <[email protected]>
Reviewed-by: Xiubo Li <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions
