Whamcloud - gitweb
LU-1445 osp: Use FID to track precreate cache.
authorwangdi <di.wang@whamcloud.com>
Thu, 26 Sep 2013 02:24:17 +0000 (19:24 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 28 Jan 2013 05:45:50 +0000 (00:45 -0500)
commit6c4c51e3079e6c257fbf86536e4739110c166e3b
treeb4ceaa75c1ba44bb7b59bbbb1cc07b49e1718710
parentc3f22bfae4ca23664959996a7d154f311f694271
LU-1445 osp: Use FID to track precreate cache.

Change last_used/pre_used/pre_created_id to real fid, so
to track precreate cache with real fid.

For simplicity, precreate/orphan_cleanup between osp and
OFD must be within the same sequence.

Precreate process will be:

1. OSP will request one sequence from OST initially.

2. During precreation, osp will allocate a group of fids
for the precreation request within the current sequence,
then send the request to OST(OFD) with these fids.

3. When getting the precreate request, OST will precreate
the objects by those fids in the request.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ib7f1016321c064656158c54f4475922a199e19b3
Reviewed-on: http://review.whamcloud.com/4789
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
15 files changed:
lustre/fid/fid_request.c
lustre/include/lustre_fid.h
lustre/include/lustre_req_layout.h
lustre/include/obd.h
lustre/ofd/ofd_obd.c
lustre/osp/lproc_osp.c
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_object.c
lustre/osp/osp_precreate.c
lustre/ost/ost_handler.c
lustre/ptlrpc/layout.c
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c
lustre/utils/req-layout.c