ceph: take reference on mds request r_unsafe_dir
authorSage Weil <sage@newdream.net>
Wed, 18 May 2011 23:12:12 +0000 (16:12 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:20:07 +0000 (11:20 -0700)
commit3b663780347ce532b08be1c859b1df14f0eea4c8
treeb78059196262209593e59ecdf0a005be6894514b
parent61c4f2c81c61f73549928dfd9f3e8f26aa36a8cf
ceph: take reference on mds request r_unsafe_dir

We put ourselves on an inode list for the parent directory of metadata
operations so that an fsync on the directory will wait for metadata updates
to commit to disk.  We weren't holding a reference to that directory,
however, and under certain workloads (fsstress in this case) the directory
can go away.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c