]> git.proxmox.com Git - pve-storage.git/commit
rbd: reduce number of stats in likely path
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 27 Apr 2022 11:01:42 +0000 (13:01 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 27 Apr 2022 11:01:42 +0000 (13:01 +0200)
commit647a667e10c86534710b14968dd1a9fae6fb3e5b
tree15778d595da1eea5f4a8d353ccc1e7a803d60210
parentcfe46e2d4a97a83f1bbe6ad656e6416399309ba2
rbd: reduce number of stats in likely path

the new udev rule is expected to be in place and active, switching the
checks around means 1 instead of 2 stat()s in this rather hot code path.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Storage/RBDPlugin.pm