X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftarget%2Ftgt_internal.h;h=bc9cbbc3f49e9c6467a85251dbac9ae3d3feecc1;hb=1d40214d96dd6e36bd39a35f8419f753bae8d305;hp=603a4c2f95877cac6e3599b7f6c6c298da3641ca;hpb=4f53536d002c13886210b672b657795baa067144;p=fs%2Flustre-release.git diff --git a/lustre/target/tgt_internal.h b/lustre/target/tgt_internal.h index 603a4c2..bc9cbbc 100644 --- a/lustre/target/tgt_internal.h +++ b/lustre/target/tgt_internal.h @@ -21,7 +21,7 @@ * GPL HEADER END */ /* - * Copyright (c) 2012, 2014, Intel Corporation. + * Copyright (c) 2012, 2016, Intel Corporation. */ /* * lustre/target/tgt_internal.h @@ -55,6 +55,7 @@ struct tgt_thread_info { /* server and client data buffers */ struct lr_server_data tti_lsd; struct lsd_client_data tti_lcd; + struct lsd_reply_data tti_lrd; struct lu_buf tti_buf; loff_t tti_off; @@ -82,6 +83,7 @@ struct tgt_thread_info { int tti_update_reply_index; struct obdo tti_obdo; struct dt_object *tti_dt_object; + struct l_wait_info tti_wait_info; } update; } tti_u; struct lfsck_request tti_lr; @@ -236,15 +238,13 @@ const char *update_op_str(__u16 opcode); extern struct page *tgt_page_to_corrupt; -struct tgt_thread_big_cache { - struct niobuf_local local[PTLRPC_MAX_BRW_PAGES]; -}; - int tgt_server_data_init(const struct lu_env *env, struct lu_target *tgt); int tgt_txn_start_cb(const struct lu_env *env, struct thandle *th, void *cookie); int tgt_txn_stop_cb(const struct lu_env *env, struct thandle *th, void *cookie); +int tgt_handle_received_xid(struct obd_export *exp, __u64 rcvd_xid); +int tgt_handle_tag(struct obd_export *exp, __u16 tag); void update_records_dump(const struct update_records *records, unsigned int mask, bool dump_updates); @@ -283,4 +283,8 @@ int sub_thandle_trans_create(const struct lu_env *env, void distribute_txn_insert_by_batchid(struct top_multiple_thandle *new); int top_trans_create_tmt(const struct lu_env *env, struct top_thandle *top_th); + +void tgt_cancel_slc_locks(struct lu_target *tgt, __u64 transno); +void barrier_init(void); +void barrier_fini(void); #endif /* _TG_INTERNAL_H */