Commit Graph

10346 Commits

Author SHA1 Message Date
Sage Weil
470a6fde96 mds: wire Connection to Session when Session already exists on connect 2010-06-07 16:03:37 -07:00
Sage Weil
6d770abebd mds: funnel mds->client messages through single Session* helper
Simplify callers where possible.
2010-06-07 16:03:14 -07:00
Sage Weil
29a42efe2e mon: simplify clock drift checks
Ignore lease sent vs lease_ack receive times bc multiple lease msgs may
be in flight and the ack may be from a previous one.  This was causing
spurious

 [WRN] : lease_ack from follower sent at time(10.06.07_15:07:11.441391), before lease extend was sent (10.06.07_15:07:11.826340)! Clocks not synchronized.

messages.

It is sufficient to just check for messages received from the future.  To
avoid cruftiness trying to do that when the only stamp is the lease
timeout, add a sent_timestamp to the message and use that instead.  This
simplifies things quite a bit, at the expense of not being backward
compatible.
2010-06-07 15:42:19 -07:00
Sage Weil
527d5fd7db monc: behave in ms_handle_reset if cur_mon is < 0 2010-06-07 15:04:37 -07:00
Sage Weil
6ff2a8760d msgr: don't throttle.get 0 2010-06-07 15:03:28 -07:00
Sage Weil
191cb2e4d4 throttle: allow put(0)
Still returns a consistent value for the count.
2010-06-07 15:00:23 -07:00
Sage Weil
e505fb5a79 msgr: don't thottle.put 0 2010-06-07 14:59:16 -07:00
Sage Weil
d2740973d0 Merge remote branch 'origin/msgr' into unstable 2010-06-07 14:47:56 -07:00
Sage Weil
4ecd8facd9 mds: use cap on head if there is none on the snapped inode
This is needed, in particular, when we're flushing snap data on an inode
that already got COWed.
2010-06-07 12:05:55 -07:00
Sage Weil
5be266098d osd: use low-level helper getting obc in sub_op_push
find_object_context does all sorts of stuff we don't need here: we know
which object the context is for.  Just set it up.
2010-06-07 11:40:32 -07:00
Greg Farnum
61555cceb8 throtle: add asserts on max and change parameters where appropriate 2010-06-07 05:55:05 -07:00
Greg Farnum
8413ed49ee throttle: fix assert count to actually use count 2010-06-07 05:54:47 -07:00
Sage Weil
520a2c37a1 crypto: don't clean up EVP table on every decrypt()
Don't think that's appropriate?  And certainly doesn't happen for the
encrypt() case.
2010-06-06 22:15:18 -07:00
Sage Weil
d57b629699 crypto: don't leak memory in CryptoAES::encrypt() 2010-06-06 22:15:18 -07:00
Sage Weil
21a97d1e7c mon: don't leak MAuth 2010-06-06 22:15:18 -07:00
Greg Farnum
989c9ee149 throttle: use signed counters and assert that count never drops below 0 2010-06-04 17:01:32 -07:00
Greg Farnum
800da082ad msgr: Fix uses of get_[data, payload, middle] to use throttling-aware functions. 2010-06-04 16:42:55 -07:00
Greg Farnum
3b333f7a3a msgr: put throttler usage on Message destruct 2010-06-04 16:42:55 -07:00
Greg Farnum
246415b3ea osd: fix compile issues 2010-06-04 16:42:55 -07:00
Greg Farnum
46040a5f66 msgr: switch to get/set functions for Message:throttler 2010-06-04 16:42:55 -07:00
Greg Farnum
0d4bdfac01 osd: add osd_client_message_size_cap option to config; default 500MB
And change the name in cosd to be that
2010-06-04 16:42:45 -07:00
Sage Weil
0c38b3d63d objectcacher: add verify_stats() debugging helper 2010-06-04 16:32:07 -07:00
Sage Weil
dff7cb33aa objectcacher: fix stat accounting when resizing bufferheads
Must keep stats in mind when adjusting bufferheads!
2010-06-04 16:32:07 -07:00
Sage Weil
a76d8fc65d objectcacher: cleanup formatting 2010-06-04 16:32:07 -07:00
Sage Weil
462552ab9d objectcacher: fix use of invalid iterator in map_write()
The p points to bh, which is removed by merge_left.  Move it back to final,
so we can advance to the new next a few lines down.
2010-06-04 16:32:06 -07:00
Sage Weil
12a5d7b2b5 objectcacher: match states before merging in map_write
The caller is going to set us to dirty, so we don't care what state we
have, so long as the left and right bits we're merging match all is ok.
2010-06-04 16:32:06 -07:00
Yehuda Sadeh
522c12e547 osd: fix rollback when head points at the rolled back snapshot 2010-06-04 16:23:38 -07:00
Greg Farnum
33b947cd10 msg: remove copy_payload and copy_data functions; change set to use throttler 2010-06-04 13:23:57 -07:00
Sage Weil
8d1e7739a5 Merge branch 'rbd' into unstable 2010-06-04 13:10:28 -07:00
Sage Weil
7b6aea6aea osd: clean up rollback debug output 2010-06-04 13:09:42 -07:00
Sage Weil
1b5920f806 uclient: handle inode with no caps from mds
This happens when you readdir and some inodes are in a different snaprealm.
2010-06-04 13:01:21 -07:00
Greg Farnum
e79a3fae4e osd: filter_xattrs on a rollback op 2010-06-04 12:57:59 -07:00
Greg Farnum
48555f527a osd: fix naughty iterator usage after invalidating it 2010-06-04 12:55:27 -07:00
Greg Farnum
a70a3668c0 osd: _make_clone now properly duplicates xattrs 2010-06-04 12:49:49 -07:00
Greg Farnum
c730b85ce3 osd: add filter_xattrs function to remove non-user xattrs from a map of them 2010-06-04 12:49:49 -07:00
Greg Farnum
f60be8e397 progress 2010-06-04 12:04:08 -07:00
Sage Weil
84b279a4b3 mds: fix straydn->first part deux
9ed0c30ecf forgot to remove the old code.
2010-06-04 11:07:09 -07:00
Greg Farnum
97f00aec19 debugging output 2010-06-03 18:22:24 -07:00
Greg Farnum
d386327205 rados: print out pool instead of object 2010-06-03 18:22:18 -07:00
Sage Weil
c4e6482d30 mds: only purge dentries with no extra refs (besides dirty)
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:30 -07:00
Sage Weil
9ed0c30ecf mds: set straydn first to match inode on unlink 2010-06-03 17:33:30 -07:00
Sage Weil
ec0aa43a6c mds: don't export stray (~mdsfoo/stray), and ignore in balancer
We _must_ keep mdsdir and stray on local mds for normal operations.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:30 -07:00
Sage Weil
074a9b10f4 mds: make discover work for multiversion inodes (e.g. dirs)
If we don't have the specific snap, look up the head and see if it's
multiversion.

This doesn't give us a "range" lookup like we get with dentries because
the inode_map is a hash, not a map.  However, we shouldn't need it,
because we always have a specific snapped inode we're looking for (because
it is refered to by a dentry) or we are looking at a multiversion head.
2010-06-03 17:33:30 -07:00
Sage Weil
9ead80f8bc mds: fix CDir::take_sub_waiting vs dnwaiter pin
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:30 -07:00
Sage Weil
791ca28295 mds: kill open_foreign_stray; but open remote mdsdirs instead
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:29 -07:00
Sage Weil
551a12f52e mds: fix cap clone logic to look at matching first, not last
The cap->client_follows is set to follows+1 by flushsnap, since the real
follows value isn't convenient.  But it is enough to know that it is more
than the old version's follows, so do that.
2010-06-03 17:33:29 -07:00
Yehuda Sadeh
ff0e871565 libatomic: fix assert.h compilation 2010-06-03 16:45:06 -07:00
Greg Farnum
900d4c6cbb msgr: add Throttle pointer to Policy 2010-06-03 16:40:32 -07:00
Greg Farnum
1facfe0fda Merge branch 'unstable' into msgr 2010-06-03 16:20:47 -07:00
Greg Farnum
3989ae40e3 osd: make sure we don't return EAGAIN to client 2010-06-03 14:12:41 -07:00