diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-02-27 22:05:51 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-03-12 03:09:33 +0000 |
commit | 3e36060b13a86ea4e39fb717dc7f59aacd47bf4f (patch) | |
tree | 6688cf705e8c65b4c51b3126c835f22b1874b20b /submit-for-review.sh | |
parent | 48ca0c05df4cee66cf8d07e19ee2267fc9ba920b (diff) | |
download | glusterfs-3e36060b13a86ea4e39fb717dc7f59aacd47bf4f.tar.gz glusterfs-3e36060b13a86ea4e39fb717dc7f59aacd47bf4f.tar.xz glusterfs-3e36060b13a86ea4e39fb717dc7f59aacd47bf4f.zip |
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 'submit-for-review.sh')
0 files changed, 0 insertions, 0 deletions