- May 18, 2010
-
-
Sage Weil authored
Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
The bdi_setup_and_register() helper doesn't help us since we bdi_init() in create_client() and bdi_register() only when sget() succeeds. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Reported-by:
Bill Pemberton <wfp5p@virginia.edu> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Ensure all options are included in /proc/mounts. Some cleanup. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
We want to assign an offset when the dentry goes from null to linked, which is always done by splice_dentry(). Notably, we should NOT assign an offset when a dentry is first created and is still null. BUG if we try to splice a non-null dentry (we shouldn't). Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
This can screw up offsets assigned to new dentries and break dcache readdir results. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Set next_offset to 2 (always 2!), not 0, on readdir finish. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Henry C Chang authored
If the version hasn't changed, don't rebuild the index. Signed-off-by:
Henry C Chang <henry_c_chang@tcloudcomputing.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
If we use the xattr_blob, clear the pointer so we don't release the memory at the bottom of the fuction. Reported-by:
Henry C Chang <henry_c_chang@tcloudcomputing.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Simplify messenger locking, and close race between ceph_con_close() setting the CLOSED bit and con_work() checking the bit, then taking the mutex. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Free dentry_info in error path. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Allow the osd reset timeout to be disabled. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Dan Carpenter authored
d_obtain_alias() doesn't return NULL, it returns an ERR_PTR(). Signed-off-by:
Dan Carpenter <error27@gmail.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Yehuda Sadeh authored
Now that the mount thread waits for the osdmap, it needs to be awaken. Signed-off-by:
Yehuda Sadeh <yehuda@hq.newdream.net>
-
Huang Weiyi authored
Remove unused #include's in fs/ceph/super.c Signed-off-by:
Huang Weiyi <weiyi.huang@gmail.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Signed-off-by:
Yehuda Sadeh <yehuda@hq.newdream.net>
-
Sage Weil authored
Reset out_keepalive_pending and peer_global_seq, and drop unused var. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
We only need to pass in front_len. Callers can attach any other payload pieces (middle, data) as they see fit. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Returning ERR_PTR(-ENOMEM) is useless extra work. Return NULL on failure instead, and fix up the callers (about half of which were wrong anyway). Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Since we don't need to maintain large pools of messages, we can just use the standard mempool_t. We maintain a msgpool 'wrapper' because we need the mempool_t* in the alloc function, and mempool gives us only pool_data. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Cheng Renquan authored
ceph_sb_to_client and ceph_client are really identical, we need to dump one; while function ceph_client is confusing with "struct ceph_client", ceph_sb_to_client's definition is more clear; so we'd better switch all call to ceph_sb_to_client. -static inline struct ceph_client *ceph_client(struct super_block *sb) -{ - return sb->s_fs_info; -} Signed-off-by:
Cheng Renquan <crquan@gmail.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Cheng Renquan authored
Signed-off-by:
Cheng Renquan <crquan@gmail.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Preallocate a single message to reuse instead. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Preallocate a single reply message that we can reuse instead. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Avoid unnecessary msgpool. Preallocate reply. Fix use-after-free race. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
This would only trigger if we bailed out before resetting r_con_filling_msg because the server reply was corrupt (oversized). Signed-off-by:
Sage Weil <sage@newdream.net>
-
Dan Carpenter authored
"xattr" is never NULL here. We took care of that in the previous if statement block. Signed-off-by:
Dan Carpenter <error27@gmail.com> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Signed-off-by:
Sage Weil <sage@newdream.net>
-
Yehuda Sadeh authored
Following Nick Piggin patches in btrfs, pagecache pages should be allocated with __page_cache_alloc, so they obey pagecache memory policies. Also, using add_to_page_cache_lru instead of using a private pagevec where applicable. Signed-off-by:
Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Stephen Rothwell authored
Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
Drop largely useless helper __prepare_pages(), and simplify sanity checks. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
If we abort a request, we return to caller, but the request may still complete. And if we hold the dir FILE_EXCL bit, we may not release a lease when sending a request. A simple un-tar, control-c, un-tar again will reproduce the bug (manifested as a 'Cannot open: File exists'). Ensure we invalidate affected dentry leases (as well dir I_COMPLETE) so we don't have valid (but incorrect) leases. Do the same, consistently, at other sites where I_COMPLETE is similarly cleared. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
When we abort requests we need to prevent fill_trace et al from doing anything that relies on locks held by the VFS caller. This fixes a race between the reply handler and the abort code, ensuring that continue holding the dir mutex until the reply handler completes. Signed-off-by:
Sage Weil <sage@newdream.net>
-
Sage Weil authored
We would occasionally BUG out in the reply handler because r_reply was nonzero, due to a race with ceph_mdsc_do_request temporarily setting r_reply to an ERR_PTR value. This is unnecessary, messy, and also wrong in the EIO case. Clean up by consistently using r_err for errors and r_reply for messages. Also fix the abort logic to trigger consistently for all errors that return to the caller early (e.g., EIO from timeout case). If an abort races with a reply, use the result from the reply. Also fix locking for r_err, r_reply update in the reply handler. Signed-off-by:
Sage Weil <sage@newdream.net>
-
- May 17, 2010
-
-
Linus Torvalds authored
-
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6Linus Torvalds authored
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: rtnetlink: make SR-IOV VF interface symmetric sctp: delete active ICMP proto unreachable timer when free transport tcp: fix MD5 (RFC2385) support
-