Skip to content

Commit 7f72301

Browse files
author
chentao.2022
committed
cephfs: Fixed a bug that read operation hung in Client::get_caps when the Fc caps is wanted but revoked by the mds, and the Fc cap refs is no-zero
Fixes: https://tracker.ceph.com/issues/65971 Signed-off-by: Tod Chen <[email protected]>
1 parent cc5533f commit 7f72301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/Client.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3620,6 +3620,9 @@ void Client::put_cap_ref(Inode *in, int cap)
36203620
if (last & CEPH_CAP_FILE_CACHE) {
36213621
ldout(cct, 5) << __func__ << " dropped last FILE_CACHE ref on " << *in << dendl;
36223622
++put_nref;
3623+
3624+
ldout(cct, 10) << __func__ << " calling signal_caps_inode" << dendl;
3625+
signal_caps_inode(in);
36233626
}
36243627
if (drop)
36253628
check_caps(in, 0);

0 commit comments

Comments
 (0)