Sage Weil
17d716ad9d
kclient: drop unused redirty code from set_page_dirty
2009-03-06 16:27:15 -08:00
Sage Weil
5f397ce668
filestore: lower min_sync_interval
...
We mainly need something non-zero here to ensure we batch some
requests up when we get a stream of requests with 'startsync'.
2009-03-06 16:27:14 -08:00
Yehuda Sadeh
1a33f6c74b
kclient: some bookkeeper fixes
2009-03-06 10:29:21 -08:00
Sage Weil
35bb1b98d3
kclient: fix bookkeeper ifdef
2009-03-06 10:16:12 -08:00
Sage Weil
8148cb6bbc
kclient: patch series descriptions, updates
2009-03-05 21:13:22 -08:00
Sage Weil
10397b6cb7
kclient: docs
2009-03-05 20:58:01 -08:00
Sage Weil
9c4e9eef59
kclient: rename ceph_tools -> bookkeeper
2009-03-05 20:57:53 -08:00
Sage Weil
f793c7f106
kclient: some caps.c cleanup
2009-03-05 18:01:15 -08:00
Sage Weil
bc1e7ea43b
mon: tolerate stray victory message (restart the election)
...
No need to core dump.
2009-03-05 16:29:02 -08:00
Sage Weil
858df3f378
kclient: BUG instead of WARN on wanted item on rdcaps list
2009-03-05 16:29:14 -08:00
Sage Weil
3e31202885
kclient: cosmetic
2009-03-05 16:29:14 -08:00
Sage Weil
40cb55afe5
kclient: wait for requests to be safe before tearing down dcache
...
We need to drop dentry refs in kill_sb _before_ kill_anon_super
tears down the dcache. Wait for safe replies for a while, then
drop what's left on the floor.
2009-03-05 16:29:14 -08:00
Sage Weil
3af0372134
kclient: don't fall over on !dirty page in invalidatepage
...
Spit out a warning, in case we end up with writeback accounting
errors. I _think_ it's ok, though.
2009-03-05 16:29:14 -08:00
Yehuda Sadeh
a4f01bb5bf
kclient: some documentation
2009-03-05 16:18:21 -08:00
Yehuda Sadeh
243d68431d
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
2009-03-05 16:14:32 -08:00
Yehuda Sadeh
c2011483f3
kclient: fix osd timeout handling
2009-03-05 16:14:12 -08:00
Sage Weil
ec1f5d5479
kclient: more sanity checks in set_page_dirty
...
These don't fix anything, just make things break sooner...
2009-03-05 15:02:06 -08:00
Sage Weil
ffce6999d2
kclient: only remember leases on regular dentries
...
...not for snapdir or snap dentries, which don't have matching
d_release methods.
2009-03-05 14:26:54 -08:00
Sage Weil
61e666521a
kclient: fix snap creation/deletion, memory leak
...
This broke with the new mds request dentry pointers.
Also, clean up kmalloced snap.
2009-03-05 14:15:55 -08:00
Sage Weil
ff52f0a10b
kclient: fix snap_realm leak
...
Separate lookup/create from get (this is safe because we always
hold span_rwsem during these operations).
2009-03-05 14:03:31 -08:00
Yehuda Sadeh
1b47fef3fb
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
2009-03-05 13:29:58 -08:00
Yehuda Sadeh
82ffc7a329
kclient: revise osd client timeout mechanism
2009-03-05 13:28:32 -08:00
Sage Weil
4c5369d809
kclient: simplify invalidatepage; strengthen assertions
2009-03-05 13:18:45 -08:00
Sage Weil
867aa9960a
kclient: writepages cleanup
2009-03-05 11:01:39 -08:00
Sage Weil
9cd5fa4fd7
synclient: optionally do a sync on object writes; wait for sync, not ack
2009-03-05 10:40:20 -08:00
Sage Weil
bdc527eba8
filestore: enforce min and max sync interval
...
Ideally the min sync interval should be self-tuning (ala ext3, xfs),
but that can come later.
2009-03-05 10:22:03 -08:00
Sage Weil
48a53adb50
kclient: dosync in writepages if sync_mode is WB_SYNC_ALL
...
If we dosync if !pdflush, then we end up doing syncs from
balance_dirty_pages, wreaking havoc on the OSDs.
It's possible the current_is_pdflush() check isn't needed at all..
2009-03-05 10:08:31 -08:00
Sage Weil
e9ea5fe435
kclient: fix readpages zeroing bug
...
Move to the next page after zeroing the first partial page.
2009-03-04 19:54:37 -08:00
Sage Weil
0a9ed8523c
kclient: return 0 from readpage on success
2009-03-04 16:55:11 -08:00
Sage Weil
e6726b255b
kclient: addr debug, cleanup
2009-03-04 16:55:11 -08:00
Sage Weil
69e4f194ee
kclient: fix readpages zeroing
2009-03-04 16:55:10 -08:00
Yehuda Sadeh
5b52d031b5
kclient: reschedule timeout for timeout length if remaining is zero
2009-03-04 16:39:18 -08:00
Yehuda Sadeh
24df3cf067
kclient: merge conflict
2009-03-04 16:32:23 -08:00
Yehuda Sadeh
e16e9f7764
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
...
Conflicts:
src/kernel/caps.c
src/kernel/super.h
2009-03-04 16:31:27 -08:00
Yehuda Sadeh
5251f2e661
kclient: sparse cleanup
2009-03-04 16:30:23 -08:00
Yehuda Sadeh
70d7a96ae1
kclient: small cleanup
2009-03-04 16:09:15 -08:00
Sage Weil
d2f189a24d
kclient: fix readpages
...
do_sync_request returns an error code or bytes read; no need to do
the 0 -> bytes conversion in the caller.
2009-03-04 15:55:32 -08:00
Sage Weil
9c79168911
kclient: use helper to clearly define which caps belond on rdcaps
...
Adjust list membership in ceph_add_cap, release, flush_ack, and
ceph_put_fmode paths. Use a spinlock to protect list adjustments
because ceph_put_fmode does not have the session mutex.
Make __cap_is_valid() to check if we are on the rdcaps list or not.
Remove unneeded extra checks in rdcaps trimmer; replace with a
WARN.
2009-03-04 15:43:32 -08:00
Yehuda Sadeh
434ad1fbc3
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
2009-03-04 14:54:05 -08:00
Sage Weil
9af3b9c10b
kclient: adjust debug output
2009-03-04 14:36:22 -08:00
Sage Weil
30394f1187
kclient: be more careful about putting cap on rdcaps in ceph_add_cap()
...
Namely, remove it if it doesn't belong there anymore. This needs
to happen when we release caps, too...
2009-03-04 14:14:22 -08:00
Yehuda Sadeh
e9c952366e
kclient: some cleanup
2009-03-04 14:13:12 -08:00
Sage Weil
6d31eca50d
kclient: do not drop rdcaps that are dirty or flushing
...
This screws up cap writeback.
2009-03-04 14:13:04 -08:00
Yehuda Sadeh
f56c056697
kclient: remove unused code
2009-03-04 14:12:57 -08:00
Sage Weil
ee63801e28
kclient: user zero_user_segment helper
2009-03-04 12:08:21 -08:00
Sage Weil
0f9a8f0de8
kclient: avoid zero_user_segment on old kernels
...
zero_user_segment appeared in 2.6.25.
2009-03-04 11:59:44 -08:00
Sage Weil
d4f98e94c9
kclient: fix __read_mostly attributes
2009-03-04 11:51:07 -08:00
Sage Weil
0c68b4f892
kclient: zero trailing pages in readpage(s) on short read or ENOENT
...
Return number of bytes read + zeroed.
Tighten up assertions a bit.
2009-03-04 11:02:08 -08:00
Sage Weil
a418ff11a2
kclient: mark debug vars __read_mostly
2009-03-04 11:02:07 -08:00
Sage Weil
058b9ea4fe
initscript: --btrfs flag
...
Optionally mount btrfs
2009-03-04 11:02:07 -08:00