ceph: drop unnecessary WARN_ON in caps migration
authorSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 17:36:40 +0000 (10:36 -0700)
committerSage Weil <sage@newdream.net>
Tue, 23 Mar 2010 14:46:52 +0000 (07:46 -0700)
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>
fs/ceph/caps.c

index 57d9b44a8820cee3ce3fbb5ce37ebbb57260d1c0..726c8d445995fd5d7feea276b595779871823c22 100644 (file)
@@ -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);
 }