ceph: fix race between aborted requests and fill_trace
authorSage Weil <sage@newdream.net>
Thu, 13 May 2010 19:01:13 +0000 (12:01 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 17:25:45 +0000 (10:25 -0700)
commitb4556396fac5b3f063d5b8ac54dc02f7612a75e1
tree30f24bd81c4c007dd09fc625f202854803dd2628
parente1518c7c0a67a75727f7285780dbef0ca7121cc9
ceph: fix race between aborted requests and fill_trace

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>
fs/ceph/mds_client.c
fs/ceph/mds_client.h