mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
kclient: don't retain caps if inode is closed and nlink == 0
This commit is contained in:
parent
57d8ba9990
commit
1df22a51a0
@ -792,7 +792,7 @@ retry_locked:
|
||||
want = file_wanted | used;
|
||||
|
||||
retain = want;
|
||||
if (!mdsc->stopping) {
|
||||
if (!mdsc->stopping && inode->i_nlink > 0) {
|
||||
/*
|
||||
* we cannot retain anything outside of
|
||||
* (wanted|EXPIREABLE), or else we run the risk of the
|
||||
|
Loading…
Reference in New Issue
Block a user