]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: dequeue cap on non-drop send caps
authorSage Weil <sage@newdream.net>
Thu, 9 Apr 2009 21:49:11 +0000 (14:49 -0700)
committerSage Weil <sage@newdream.net>
Thu, 9 Apr 2009 21:49:11 +0000 (14:49 -0700)
If we are doing a full update (i.e., not a drop, where wanted is
censored), remove ourselves from the delay queue.

src/kernel/caps.c

index 3e3612ae76a2b7c8a35787dbd2adab5a585b4c17..7b1ffb1945778c7050488b1eecd064133740acb5 100644 (file)
@@ -1191,6 +1191,7 @@ ack:
                        op = CEPH_CAP_OP_DROP;
                } else {
                        op = CEPH_CAP_OP_UPDATE;
+                       __cap_delay_cancel(mdsc, ci);
                }
 
                mds = cap->mds;  /* remember mds, so we don't repeat */