]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix ci->i_head_snapc leak
authorYan, Zheng <zyan@redhat.com>
Thu, 18 Apr 2019 03:24:57 +0000 (11:24 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 23 Apr 2019 19:37:54 +0000 (21:37 +0200)
commit77601ac8f5d2a1672ef88d1ff8a9ac780d70b564
tree131b20cb2308f0fbd8b411fdeaf49d97b9ff7aa1
parent2ec1b163cc52fc192fe0b89e98ad3b11f3135c3a
ceph: fix ci->i_head_snapc leak

We missed two places that i_wrbuffer_ref_head, i_wr_ref, i_dirty_caps
and i_flushing_caps may change. When they are all zeros, we should free
i_head_snapc.

Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/38224
Reported-and-tested-by: Luis Henriques <lhenriques@suse.com>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/snap.c