mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 21:30:43 +00:00
ceph: drop unnecessary WARN_ON in caps migration
If we don't have the exported cap it's because we already released it. No need to WARN. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
12eadc1900
commit
4ea0043a29
@ -2550,9 +2550,8 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
|
||||
ci->i_cap_exporting_issued = cap->issued;
|
||||
}
|
||||
__ceph_remove_cap(cap);
|
||||
} else {
|
||||
WARN_ON(!cap);
|
||||
}
|
||||
/* else, we already released it */
|
||||
|
||||
spin_unlock(&inode->i_lock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user