Commit Graph

7901 Commits

Author SHA1 Message Date
Sage Weil
db494355e8 kclient: learn address during connect handshake 2009-09-02 16:10:06 -07:00
Sage Weil
218e4ed113 msgr: detect rank addr during connect handshake; clean up addr apis 2009-09-02 16:10:06 -07:00
Sage Weil
4330037a69 msgr: include my addr AND socket addr during connect handshake
This allows connecting side to detect their ip address.
2009-09-02 16:10:05 -07:00
Sage Weil
3e67dd8d0f kclient: whoami is __s64 2009-09-02 12:54:08 -07:00
Sage Weil
8d64e4d47b uclient: use client_t for client id 2009-09-02 12:53:59 -07:00
Sage Weil
a2c869c3ce mds: use client_t throughout 2009-09-02 12:53:47 -07:00
Sage Weil
27f6aa37ed msgr: 64bit entity name num 2009-09-02 11:32:21 -07:00
Sage Weil
7bb5895cd8 kclient: fix osd request kicking 2009-09-02 11:23:04 -07:00
Sage Weil
4ce269292b kclient: kill msgr->parent, dead msg pool code, prepare_pages arg 2009-09-01 16:16:53 -07:00
Sage Weil
5901023c16 kclient: osd restart fixes 2009-09-01 16:07:55 -07:00
Sage Weil
b7a9da1b9f kclient: set prepare_pages for osd client (der) 2009-09-01 16:02:42 -07:00
Sage Weil
738da1eec6 kclient: fix request kicking crash 2009-09-01 15:59:35 -07:00
Sage Weil
79b2740310 kclient: cleanup old FIXME comments 2009-09-01 15:51:29 -07:00
Sage Weil
ba2acd5244 kclient: improve osd error handling
We still r_resend even when we could fail, but it's just simpler
to do it that way.
2009-09-01 15:51:20 -07:00
Sage Weil
1ca917793f kclient: reuse osd struct when possible 2009-09-01 15:48:32 -07:00
Sage Weil
88c788f9d6 kclient: make mon hunt explicit; note in kern.log 2009-09-01 14:29:45 -07:00
Sage Weil
63aebffdfb mon: actually send updates to subscribers :) 2009-09-01 14:07:10 -07:00
Sage Weil
cdc4570f90 kclient: avoid get_random_int(), it's new
Just use get_random_bytes instead.
2009-09-01 14:02:39 -07:00
Sage Weil
ad0c75352e kclient: pick new mon on _fault_, not peer reset
The latter only occurs if we succeed in reconnecting and find that
the peer dropped the session (connect_seq didn't match).  That
won't happen if the mon is just down.
2009-09-01 13:08:28 -07:00
Sage Weil
6e0e406070 kclient: fix osdmap requests, subscription timeouts
Only request osdmap once, unless we restart our session.  Clean up
expired tests with helper.  Hunt if our monitor fails.
2009-09-01 12:34:28 -07:00
Sage Weil
eb5b6add84 kclient: no need for r_fwd_session
We always resend requests at the direction of the mds; the mds
won't forward for us.  (Otherwise the reply won't make it back!)
This simplifies forwards and retries.
2009-09-01 11:36:39 -07:00
Sage Weil
488cbb1b34 kclient: fix bad mds session put
From e5847ba5a9
2009-09-01 11:35:28 -07:00
Sage Weil
c31e9267d3 kclient: don't leak ref when queuing fault work 2009-09-01 11:04:17 -07:00
Sage Weil
ee2175fdb5 kclient: use subscribe to get mdsmap, osdmap updates 2009-09-01 11:04:03 -07:00
Sage Weil
2e49846903 msgr: print louder notice on bad banner; rev 2009-09-01 11:03:33 -07:00
Sage Weil
b2155c81b9 mon: subscribe duration in units of seconds, not ms 2009-09-01 11:03:15 -07:00
Sage Weil
1530e938d7 osd: remove ticket from MOSDOp 2009-09-01 10:52:27 -07:00
Sage Weil
cdeb19e3e2 vstart: be quiet 2009-08-31 16:33:45 -07:00
Sage Weil
c47c926cf0 kclient: subscribe to mdsmap 2009-08-31 16:08:48 -07:00
Sage Weil
d863584a98 mon: clean up subscribe types a bits 2009-08-31 15:54:23 -07:00
Sage Weil
f7c1bec44a objecter: use one-time subscription request for osdmap 2009-08-31 15:54:05 -07:00
Sage Weil
0009d675c6 mon: do one-time subscriptions, too 2009-08-31 15:27:13 -07:00
Sage Weil
a0cc21dc66 monc: resubscribe on monitor connection reset 2009-08-31 14:38:22 -07:00
Sage Weil
cdf683ca45 monclient: fix subscription renewal 2009-08-31 14:17:54 -07:00
Sage Weil
0635d43aa1 objecter: request full map on startup 2009-08-31 14:13:10 -07:00
Sage Weil
6f919f1f36 msgr: deliver resets to all dispatchers; make naming consistent 2009-08-31 14:12:58 -07:00
Sage Weil
44d519b666 mon: clean up send_reply interface 2009-08-31 13:05:47 -07:00
Sage Weil
269448ad6f uclient: subscribe to mdsmap; strip out some signed_ticket cruft; fix mount 2009-08-31 13:00:09 -07:00
Sage Weil
dbc4f60eb8 msgr: keepalive 2009-08-31 12:59:01 -07:00
Sage Weil
dbc00a61cb mon: route replies 2009-08-31 12:58:25 -07:00
Sage Weil
afd038b431 mon: add subscribe function 2009-08-28 16:48:09 -07:00
Sage Weil
7b5670abb9 msgr: oops 2009-08-28 16:01:45 -07:00
Sage Weil
4fab953393 mon: simplify mount; remove MClientUnmount 2009-08-28 16:01:34 -07:00
Sage Weil
b69e7d83af kclient: handle mds reconnect.. mostly.. 2009-08-28 14:41:58 -07:00
Sage Weil
8e356bf403 kclient: make con_close, con_reopen work 2009-08-28 14:27:18 -07:00
Sage Weil
e8a2690775 mon: treat osd, mds as peers, not clients (i.e. connect to them) 2009-08-28 14:24:19 -07:00
Sage Weil
c0c2143b7f msgr: server shouldn't initiate outgoing connections 2009-08-28 14:24:01 -07:00
Sage Weil
5b431b8dae msgr: set default policy correctly 2009-08-28 12:54:10 -07:00
Sage Weil
52f55c7296 mds: never forward messages for the client
Otherwise we won't be sure they have a session.. and the reply might not
make it back!
2009-08-27 20:27:45 -07:00
Sage Weil
e5847ba5a9 kclient: avoid session lookup in mdsc 2009-08-27 15:52:50 -07:00