]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: refactor mds requests to put most processing in reply handler
authorSage Weil <sage@newdream.net>
Wed, 5 Mar 2008 21:29:03 +0000 (13:29 -0800)
committerSage Weil <sage@newdream.net>
Wed, 5 Mar 2008 21:29:03 +0000 (13:29 -0800)
commit4c6431bb0c554347b0581cf58d1254361e3c1d90
tree94e5e9a992bdb410848232831b3309352f26b020
parent371f4bc32ba541edf3ee95dd8312aadbbcdb2df0
client: refactor mds requests to put most processing in reply handler

The goal is to fix race issues between open reply processing (previously
in calling processes context) and subsequent file_cap messages.  This just
pushes generic mds reply handling into the reply handler, including
the ceph_insert_trace (somewhat heavyweight, unfortunately) and the cap
creation/update.

This effectively pushes a lot more code into the single thread thats
doing mds replies, but simplifies a lot of code.  Until scaling issues
arise, I think it's fine.
src/kernel/client.c
src/kernel/dir.c
src/kernel/file.c
src/kernel/inode.c
src/kernel/mds_client.c
src/kernel/mds_client.h
src/kernel/super.h