EXIT;
}
-void ptlrpc_commit_replies_alt(struct obd_export *exp)
-{
- struct ptlrpc_reply_state *rs, *nxt;
- struct list_head committed_list;
- DECLARE_RS_BATCH(batch);
- ENTRY;
-
- CFS_INIT_LIST_HEAD(&committed_list);
- spin_lock(&exp->exp_uncommitted_replies_lock);
- list_for_each_entry_safe(rs, nxt, &exp->exp_uncommitted_replies,
- rs_obd_list) {
- LASSERT (rs->rs_difficult);
- LASSERT(rs->rs_export);
- if (likely(rs->rs_transno <= exp->exp_last_committed))
- list_move(&rs->rs_obd_list, &committed_list);
- else
- break;
- }
- spin_unlock(&exp->exp_uncommitted_replies_lock);
-
- /* XXX: do we need this in context of commit callback? maybe separate thread
- * should work this out */
- rs_batch_init(&batch);
- /* get replies that have been committed and get their service
- * to attend to complete them. */
- list_for_each_entry_safe(rs, nxt, &committed_list, rs_obd_list) {
- list_del_init(&rs->rs_obd_list);
- rs_batch_add(&batch, rs);
- }
- rs_batch_fini(&batch);
- EXIT;
-}
void ptlrpc_commit_replies(struct obd_export *exp)
{
struct ptlrpc_reply_state *rs, *nxt;
[ $blk1 -eq $blk2 ] || error $((blk2-blk1)) "blocking RPC occured."
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120a "Early Lock Cancel: mkdir test"
[ $blk1 -eq $blk2 ] || error $((blk2-blk1)) "blocking RPC occured."
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120b "Early Lock Cancel: create test"
[ $blk1 -eq $blk2 ] || error $((blk2-blk1)) "blocking RPC occured."
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120c "Early Lock Cancel: link test"
[ $blk1 -eq $blk2 ] || error $((blk2-blk1)) "blocking RPC occured."
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120d "Early Lock Cancel: setattr test"
[ $blk1 -eq $blk2 ] || error $((blk2-blk1)) "blocking RPC occured."
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120e "Early Lock Cancel: unlink test"
[ $blk1 -eq $blk2 ] || error $((blk2-blk1)) "blocking RPC occured."
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120f "Early Lock Cancel: rename test"
# wait for commitment of removal
lru_resize_enable mdc
lru_resize_enable osc
-# rm -rf $DIR/$tdir
}
run_test 120g "Early Lock Cancel: performance test"