summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2019-02-27 22:05:51 +0200
committerAmar Tumballi <amarts@redhat.com>2019-03-12 03:09:33 +0000
commit3e36060b13a86ea4e39fb717dc7f59aacd47bf4f (patch)
tree6688cf705e8c65b4c51b3126c835f22b1874b20b /glusterfsd
parent48ca0c05df4cee66cf8d07e19ee2267fc9ba920b (diff)
io-threads.c: Potentially skip a lock.
Before going into the lock, verify stub_cnt != 0. Otherwise, let's skip this code. Unrelated, switch a CALLOC to MALLOC, as we initialize all members right away. This allocation is done also under lock, so also should help a bit. Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com> Change-Id: Ie2fe6adff41ae4969abff95eff945b54e1a01d32
Diffstat (limited to 'glusterfsd')
0 files changed, 0 insertions, 0 deletions