Commit Graph

5258 Commits

Author SHA1 Message Date
Sage Weil
e5ba5ed3ce mds: fix null_okay traverse logic 2008-12-23 11:45:22 -08:00
Sage Weil
968cfc8f1b mds: add safe flag to mds reply 2008-12-23 11:45:22 -08:00
Sage Weil
bbe70a18af mds: process caps if freezing and unstable lock
The caps message may be a revocation ack that is needed to complete
the freeze.  In general, though, we back off even if freezing,
since we want to avoid starving the freeze as much as possible.
2008-12-23 11:45:22 -08:00
Sage Weil
bed844f15e mds: misc filelock fixes 2008-12-23 11:45:22 -08:00
Sage Weil
16ed267aa0 mds: auth_pin rdlocks too
Not sure why we didn't before... :/
2008-12-23 11:45:22 -08:00
Sage Weil
04cf78c7e5 kclient: make mdsmap_decode print nicer info 2008-12-23 11:45:22 -08:00
Sage Weil
1f06b73260 kclient: update num_fwd in client requests
We were keeping our local copy, but not updating the message sent.

Also fix buggy maybe_dup behavior (dup, then set rhead pointer)!
2008-12-23 11:45:22 -08:00
Sage Weil
ac9d80b785 kclient: allow mds to force open a client session 2008-12-23 11:45:22 -08:00
Sage Weil
55e6b073f8 mds: don't bump to sync if dir and subtree root 2008-12-23 11:45:22 -08:00
Sage Weil
0332cd0bc5 mds: fix file_wrlock_start waiting 2008-12-23 11:45:22 -08:00
Sage Weil
a902349e5c mds: filelock typo in can_rdlock 2008-12-23 11:45:22 -08:00
Sage Weil
402c18634c mds: cleanup 2008-12-23 11:45:22 -08:00
Sage Weil
edab8a7cdd vstart: 1 mds 2008-12-23 11:45:22 -08:00
Sage Weil
fd2b7c7165 mds: check_inode_max_size only change filelock state if needed
Don't try to change lock state unless we actually have something
to update.
2008-12-23 11:45:22 -08:00
Sage Weil
557e7d9d75 kclient: ICONTENT -> IFILE 2008-12-23 11:45:21 -08:00
Sage Weil
339380945f vstart: start 3 mdss 2008-12-23 11:45:21 -08:00
Sage Weil
89b8283f73 mds: basic filelock fixes 2008-12-23 11:45:21 -08:00
Sage Weil
624ed85a6f mon: add multiple mds's at once 2008-12-23 11:45:21 -08:00
Sage Weil
fca6c27cbc mds: kill the dirlock 2008-12-23 11:45:21 -08:00
Sage Weil
09c0288c5e mds: make filelock a scatterlock child; move wrlock into simplelock 2008-12-23 11:45:21 -08:00
Sage Weil
fe744dcdcd mds: fix mixed_sync state; send replica mixed state to primary as needed 2008-12-23 11:45:21 -08:00
Sage Weil
b9ce3dae02 mds: message include cleanup 2008-12-23 11:45:21 -08:00
Sage Weil
247e6d955e mds: fix up filelock states
Allow wrlocks in LOCK_MIXED (which will serve the same function as
LOCK_SCATTER).

Clean up can_wrlock()/can_rdlock().. there were lots of states in
there that shouldn't have been.
2008-12-23 11:45:21 -08:00
Sage Weil
397938f45d mds: new FileLock lock->sync state
Previously this was avoided, more or less by accident.  ScatterLock
has it, so we'll presumably need it in FileLock to fold them
together.
2008-12-23 11:45:21 -08:00
Sage Weil
1df9248df6 mds: rename gather lock states
Easier to read: LOCK_oldstate_newstate, "oldstate->newstate"
2008-12-23 11:45:21 -08:00
Sage Weil
2050e49010 mds: include max mds in mdsmap summary 2008-12-23 11:45:06 -08:00
Sage Weil
1163bcd618 mds: fix standby_replay on startup 2008-12-23 11:45:03 -08:00
Yehuda Sadeh
c8f31fb2fa remove uninitialized warnings 2008-12-22 15:20:27 -08:00
Yehuda Sadeh
f21f172595 osd: gracefully exit when create_object_store() returns NULL 2008-12-22 13:13:20 -08:00
Sage Weil
58522622eb osd: inc_lock attr is optional 2008-12-22 10:10:50 -08:00
Sage Weil
63f63bb2a7 osd: update pg degraded stats only when active
peer_missing needs to be defined.
2008-12-22 10:10:49 -08:00
Sage Weil
b873c1702d osd: initialize generate_backlog_epoch 2008-12-22 10:10:49 -08:00
Sage Weil
35d5c74df3 osd: clear_prior when activating
This just ensures that, once active, an osd state change affecting our
prior_set won't make us repeer.  E.g., a prior going down.
2008-12-22 10:10:48 -08:00
Sage Weil
21bf68c212 osd: clear backlog flag when done
Otherwise we won't requeue again later.
2008-12-22 10:10:47 -08:00
Sage Weil
199d03243f osd: only update degraded object stats after peering
This avoids incorrectly populating peer_missing[acting[i]], which
in turn screws up peering and recovery.
2008-12-19 12:27:46 -08:00
Sage Weil
af9559e784 osd: clear STATE_PEERING during replay 2008-12-18 16:46:07 -08:00
Sage Weil
e194bc95cf osd: safely encode all other attributes 2008-12-18 16:45:56 -08:00
Sage Weil
0db8c4c773 osd: properly encode ondisklog attr
Also combine into a single attr.
2008-12-18 16:01:41 -08:00
Sage Weil
ee4b96187b buffer: optionally preallocate some append_buffer 2008-12-18 15:24:00 -08:00
Sage Weil
9f1c7b16c1 make time format easier to read 2008-12-18 11:34:11 -08:00
Sage Weil
41dfd4089d ceph: terminate dumped output 2008-12-17 16:48:38 -08:00
Sage Weil
1a94147b2c mon: tell stdout where the monmap came from 2008-12-17 15:42:23 -08:00
Sage Weil
705496f660 dstart: cm.txt update (for 3x) 2008-12-17 15:42:22 -08:00
Sage Weil
705918340f ceph: fix observe renewal; ack by paxos 2008-12-17 15:43:44 -08:00
Sage Weil
901e58266f todo 2008-12-17 14:06:15 -08:00
Sage Weil
022d80126f verify-mds-journal: periodically verify mds replay; stop if error 2008-12-17 13:37:34 -08:00
Sage Weil
75421fcdb4 mds: only standby-replay when explicitly requested on startup.
Until it does something more than just replay the log and quit.
2008-12-17 13:32:11 -08:00
Sage Weil
6bf3f40190 mds: basic standby-replay hack
Replay the log, and exit cleanly if everything looks ok.
2008-12-17 13:12:27 -08:00
Sage Weil
81be48b5b4 mon: replace laggy standby-replay nodes too
If there is someone to take over...
2008-12-17 13:02:44 -08:00
Sage Weil
7b695ec689 mon: mark extra standby mds's as standby-replay
Not that the mds does the right thing, yet...
2008-12-17 12:34:28 -08:00