forked from Seagate/cortx-motr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfol_fdmi_src.c
613 lines (493 loc) · 17.4 KB
/
fol_fdmi_src.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
/* -*- C -*- */
/*
* Copyright (c) 2017-2020 Seagate Technology LLC and/or its Affiliates
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* For any questions about this software or licensing,
* please email opensource@seagate.com or cortx-questions@seagate.com.
*
*/
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/finject.h" /* M0_FI_ENABLED */
#include "fdmi/fdmi.h"
#include "fdmi/source_dock.h"
#include "fdmi/fol_fdmi_src.h"
#include "fdmi/filter.h"
#include "fdmi/source_dock_internal.h"
#include "fdmi/module.h"
#include "fop/fop.h" /* m0_fop_fol_frag */
/**
* @addtogroup fdmi_fol_src
*
* <b>Implementation notes.</b>
*
* FDMI needs in-memory representaion of a FOL record to operate on. So, FOL
* source will increase backend transaction ref counter (fom->fo_tx.be_tx,
* using m0_be_tx_get()) to make sure it is not destroyed, and pass
* m0_fom::fo_tx as a handle to FDMI. The refcounter will be decremented back
* once FDMI has completed its processing and all plugins confirm they are
* done with record.
*
* FDMI refc inc/dec will be kept as a separate counter inside m0_be_tx. This
* will help prevent/debug cases when FDMI decref calls count does not match
* incref calls count. At first, we used transaction lock to protect this
* counter modification, but it caused deadlocks. So we switched to using
* m0_atomic64 instead. This is OK, since inc/dec operations are never mixed,
* they are always "in line": N inc operations, followed by N dec operations,
* so there is no chance of race condition when it decreased to zero, and we
* initiated tx release operation, and then "someone" decides to increase the
* counter again.
*
* This is implementation of Phase1, which does not need transaction support
* (that is, we don't need to re-send FDMI records, which would normally
* happen in case when plugin for example crashes and re-requests FDMI records
* starting from X in the past). This assumption results in the following
* implementation appoach.
*
* - We will keep transaction "open" until FDMI reports it has completed
* filter processing (m0_fdmi_src::fs_end()). This
* simplifies a lot of stuff -- entire FOL record is available in memory for
* our manipulations (get_value and encode calls).
* - We will NOT count incref/decref calls, and will completely release the
* record after m0_fdmi_src::fs_end() call. (We will
* still implement the counter -- to put in a work-around for future
* expansion.)
*
* @{
*/
/* ------------------------------------------------------------------
* Fragments handling
* ------------------------------------------------------------------ */
#define M0_FOL_FRAG_DATA_HANDLER_DECLARE(_opecode, _get_val_func) { \
.ffh_opecode = (_opecode), \
.ffh_fol_frag_get_val = (_get_val_func) }
static struct ffs_fol_frag_handler ffs_frag_handler_array[] = {
M0_FOL_FRAG_DATA_HANDLER_DECLARE(0, NULL)
};
/* ------------------------------------------------------------------
* List of locked transactions
* ------------------------------------------------------------------ */
M0_TL_DESCR_DEFINE(ffs_tx, "fdmi fol src tx list", M0_INTERNAL,
struct m0_be_tx, t_fdmi_linkage, t_magic,
M0_BE_TX_MAGIC, M0_BE_TX_ENGINE_MAGIC);
M0_TL_DEFINE(ffs_tx, M0_INTERNAL, struct m0_be_tx);
/* ------------------------------------------------------------------
* Helpers
* ------------------------------------------------------------------ */
static struct m0_dtx* ffs_get_dtx(struct m0_fdmi_src_rec *src_rec)
{
/* This is just wrapper, so no point using ENTRY/LEAVE */
struct m0_fol_rec *fol_rec;
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
fol_rec = container_of(src_rec, struct m0_fol_rec, fr_fdmi_rec);
return container_of(fol_rec, struct m0_dtx, tx_fol_rec);
}
static void be_tx_put_ast_cb(struct m0_sm_group *grp, struct m0_sm_ast *ast)
{
struct m0_be_tx *be_tx = ast->sa_datum;
M0_ENTRY("sm_group %p, ast %p (be_tx = %p)", grp, ast, be_tx);
M0_LOG(M0_DEBUG, "call be_tx_put direct (2)");
m0_be_tx_put(be_tx);
M0_LEAVE();
}
static void ffs_tx_inc_refc(struct m0_be_tx *be_tx, int64_t *counter)
{
struct m0_fdmi_module *m = m0_fdmi_module__get();
int64_t cnt;
M0_ENTRY("be_tx %p", be_tx);
M0_ASSERT(be_tx != NULL);
if (m0_atomic64_get(&be_tx->t_fdmi_ref) == 0) {
/**
* Value = 0 means this call happened during record
* posting. Execution context is well-defined, all
* locks already acquired, no need to use AST.
*/
M0_LOG(M0_INFO, "first incref for a be_tx_get %p", be_tx);
m0_be_tx_get(be_tx);
m0_mutex_lock(&m->fdm_s.fdms_ffs_locked_tx_lock);
ffs_tx_tlink_init_at_tail(be_tx,
&m->fdm_s.fdms_ffs_locked_tx_list);
m0_mutex_unlock(&m->fdm_s.fdms_ffs_locked_tx_lock);
}
cnt = m0_atomic64_add_return(&be_tx->t_fdmi_ref, 1);
M0_ASSERT(cnt > 0);
if (counter != NULL)
*counter = cnt;
M0_LEAVE("counter = %"PRIi64, cnt);
}
static void ffs_tx_dec_refc(struct m0_be_tx *be_tx, int64_t *counter)
{
struct m0_fdmi_module *m = m0_fdmi_module__get();
int64_t cnt;
M0_ENTRY("be_tx %p, counter ptr %p", be_tx, counter);
M0_ASSERT(be_tx != NULL);
cnt = m0_atomic64_sub_return(&be_tx->t_fdmi_ref, 1);
M0_ASSERT(cnt >= 0);
if (counter != NULL)
*counter = cnt;
if (cnt == 0) {
m0_mutex_lock(&m->fdm_s.fdms_ffs_locked_tx_lock);
ffs_tx_tlink_del_fini(be_tx);
m0_mutex_unlock(&m->fdm_s.fdms_ffs_locked_tx_lock);
M0_LOG(M0_DEBUG, "call be_tx_put CB");
be_tx->t_fdmi_put_ast.sa_cb = be_tx_put_ast_cb;
be_tx->t_fdmi_put_ast.sa_datum = be_tx;
m0_sm_ast_post(be_tx->t_sm.sm_grp, &be_tx->t_fdmi_put_ast);
M0_LOG(M0_DEBUG, "last decref for a be_tx %p "
"(ast callback posted)", be_tx);
}
M0_LEAVE("counter = %"PRIi64, cnt);
}
#if 0
/* Will only be used in Phase2, when we introduce proper handling of
* transactions. */
static void ffs_rec_get(struct m0_uint128 *fdmi_rec_id)
{
M0_ENTRY("fdmi_rec_id: " U128X_F, U128_P(fdmi_rec_id));
...
ffs_tx_inc_refc(&entry->fsim_tx->tx_betx, NULL);
M0_LEAVE();
}
#endif
static void ffs_rec_put(struct m0_fdmi_src_rec *src_rec,
int64_t *counter)
{
struct m0_dtx *dtx;
int64_t cnt;
M0_ENTRY("src_rec %p, counter %p", src_rec, counter);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
dtx = ffs_get_dtx(src_rec);
M0_ASSERT(dtx != NULL);
ffs_tx_dec_refc(&dtx->tx_betx, &cnt);
if (counter != NULL)
*counter = cnt;
M0_LEAVE("counter = %"PRIi64, cnt);
}
/* ------------------------------------------------------------------
* FOL source interface implementation
* ------------------------------------------------------------------ */
static int ffs_op_node_eval(struct m0_fdmi_src_rec *src_rec,
struct m0_fdmi_flt_var_node *value_desc,
struct m0_fdmi_flt_operand *value)
{
struct m0_dtx *dtx;
struct m0_fol_rec *fol_rec;
uint64_t opcode;
struct m0_fol_frag *rfrag;
struct m0_fop_fol_frag *rp;
int rc;
M0_ENTRY("src_rec %p, value desc %p, value %p",
src_rec, value_desc, value);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
M0_ASSERT(value_desc != NULL && value != NULL);
dtx = ffs_get_dtx(src_rec);
M0_ASSERT(dtx != NULL);
fol_rec = &dtx->tx_fol_rec;
/** @todo Phase 2: STUB: For now, we will not analyze filter, we just
* return FOL op code -- always. */
rfrag = m0_rec_frag_tlist_head(&fol_rec->fr_frags);
M0_ASSERT(rfrag != NULL);
/**
* TODO: Q: (question to FOP/FOL owners) I could not find a better way
* to assert that this frag is of m0_fop_fol_frag_type, than to use this
* workaround (referencing internal _ops structure). Looks like they are
* ALWAYS of this type?... Now that there is NO indication of frag
* type whatsoever?... */
M0_ASSERT(rfrag->rp_ops->rpo_type == &m0_fop_fol_frag_type);
rp = rfrag->rp_data;
M0_ASSERT(rp != NULL);
opcode = rp->ffrp_fop_code;
m0_fdmi_flt_uint_opnd_fill(value, opcode);
rc = 0;
return M0_RC(rc);
}
static void ffs_op_get(struct m0_fdmi_src_rec *src_rec)
{
M0_ENTRY("src_rec %p", src_rec);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
#if 0
/* Proper transactional handling is for phase 2. */
ffs_rec_get(fdmi_rec_id);
#endif
M0_LEAVE();
}
static void ffs_op_put(struct m0_fdmi_src_rec *src_rec)
{
M0_ENTRY("src_rec %p", src_rec);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
#if 0
/* Proper transactional handling is for phase 2. */
ffs_rec_put(fdmi_rec_id, NULL, NULL);
#endif
M0_LEAVE();
}
static int ffs_op_encode(struct m0_fdmi_src_rec *src_rec,
struct m0_buf *buf)
{
struct m0_dtx *dtx;
struct m0_fol_rec *fol_rec;
struct m0_buf local_buf = {};
int rc;
M0_ASSERT(buf != NULL);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
M0_ASSERT(buf->b_addr == NULL && buf->b_nob == 0);
M0_ENTRY("src_rec %p, cur " BUF_F, src_rec, BUF_P(buf));
dtx = ffs_get_dtx(src_rec);
M0_ASSERT(dtx != NULL);
fol_rec = &dtx->tx_fol_rec;
/**
* @todo Q: (for FOL owners) FOL record does not provide API call to
* calculate record size when encoded. For now, I'll do double
* allocation. Alloc internal buf of max size, then encode, then
* alloc with correct size, then copy, then dealloc inernal buf. Can
* be done properly once FOL record owner exports needed api call.
*/
rc = m0_buf_alloc(&local_buf, FOL_REC_MAXSIZE);
if (rc != 0) {
return M0_ERR_INFO(rc, "Failed to allocate internal buffer "
"for encoded FOL FDMI record.");
}
rc = m0_fol_rec_encode(fol_rec, &local_buf);
if (rc != 0) {
M0_LOG(M0_ERROR,
"Failed to encoded FOL FDMI record.");
goto done;
}
rc = m0_buf_alloc(buf, fol_rec->fr_header.rh_data_len);
if (rc != 0) {
M0_LOG(M0_ERROR,
"Failed to allocate encoded FOL FDMI record.");
goto done;
}
memcpy(buf->b_addr, local_buf.b_addr, buf->b_nob);
if (M0_FI_ENABLED("fail_in_final"))
rc = -EINVAL;
done:
/* Finalization */
if (local_buf.b_addr != NULL)
m0_buf_free(&local_buf);
/* On-Error cleanup. */
if (rc < 0) {
if (buf->b_addr != NULL)
m0_buf_free(buf);
}
return M0_RC(rc);
}
static int ffs_op_decode(struct m0_buf *buf, void **handle)
{
struct m0_fol_rec *fol_rec = 0;
int rc = 0;
M0_ASSERT(buf != NULL && buf->b_addr != NULL && handle != NULL);
M0_ENTRY("buf " BUF_F ", handle %p", BUF_P(buf), handle);
M0_ALLOC_PTR(fol_rec);
if (fol_rec == NULL) {
M0_LOG(M0_ERROR, "failed to allocate m0_fol_rec object");
rc = -ENOMEM;
goto done;
}
m0_fol_rec_init(fol_rec, NULL);
rc = m0_fol_rec_decode(fol_rec, buf);
if (rc < 0)
goto done;
*handle = fol_rec;
if (M0_FI_ENABLED("fail_in_final"))
rc = -EINVAL;
done:
if (rc < 0) {
if (fol_rec != NULL) {
m0_fol_rec_fini(fol_rec);
m0_free0(&fol_rec);
}
*handle = NULL;
}
return M0_RC(rc);
}
static void ffs_op_begin(struct m0_fdmi_src_rec *src_rec)
{
M0_ENTRY("src_rec %p", src_rec);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
/**
* No need to do anything on this event for FOL Source. Call to
* ffs_tx_inc_refc done in m0_fol_fdmi_post_record below will make sure
* the data is already in memory and available for fast access at the
* moment of this call.
*/
(void)src_rec;
M0_LEAVE();
}
static void ffs_op_end(struct m0_fdmi_src_rec *src_rec)
{
int64_t counter;
M0_ENTRY("src_rec %p", src_rec);
M0_ASSERT(m0_fdmi__record_is_valid(src_rec));
/* Note: in Phase 2, we'll probably need to handle two different cases
* differently. Case#1 is get/put backend transaction, to make sure
* it's held in RAM up to the moment FDMI runs all filters. Case#2 is
* some kind of counter which protects FOL entry from destruction
* before we get all 'decref' callbacks from FDMI source dock. Right
* now, I ignore incref/decref altogether, since Phase 1 does not
* support transactions and FDMI records re-sending. And I do this
* decref here to release transaction. In Phase 2, this may need
* rework. */
counter = 1;
ffs_rec_put(src_rec, &counter); /* This call is a pair to the
* first call, inc_refc, done in
* post_record. */
M0_ASSERT(counter == 0); /* Valid until FDMI phase 2; in phase 2 we
* add transaction handling, and
* incref/decref will start working, and
* counter will be non-zero here if any
* filters matched. See ffs_op_get. */
M0_LEAVE();
}
/* ------------------------------------------------------------------
* Init/fini
* ------------------------------------------------------------------ */
M0_INTERNAL int m0_fol_fdmi_src_init(void)
{
struct m0_fdmi_module *m = m0_fdmi_module__get();
int rc;
M0_ENTRY();
M0_ASSERT(m->fdm_s.fdms_ffs_ctx.ffsc_src == NULL);
m->fdm_s.fdms_ffs_ctx.ffsc_magic = M0_FOL_FDMI_SRC_CTX_MAGIC;
rc = m0_fdmi_source_alloc(M0_FDMI_REC_TYPE_FOL,
&m->fdm_s.fdms_ffs_ctx.ffsc_src);
if (rc != 0)
return M0_ERR(rc);
ffs_tx_tlist_init(&m->fdm_s.fdms_ffs_locked_tx_list);
m0_mutex_init(&m->fdm_s.fdms_ffs_locked_tx_lock);
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_node_eval = ffs_op_node_eval;
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_get = ffs_op_get;
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_put = ffs_op_put;
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_begin = ffs_op_begin;
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_end = ffs_op_end;
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_encode = ffs_op_encode;
m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_decode = ffs_op_decode;
rc = m0_fdmi_source_register(m->fdm_s.fdms_ffs_ctx.ffsc_src);
if (rc != 0) {
M0_LOG(M0_ERROR, "Failed to register FDMI FOL source.");
goto error_free_src;
}
m->fdm_s.fdms_ffs_ctx.ffsc_frag_handler_vector = ffs_frag_handler_array;
m->fdm_s.fdms_ffs_ctx.ffsc_handler_number =
ARRAY_SIZE(ffs_frag_handler_array);
return M0_RC(rc);
error_free_src:
m0_fdmi_source_deregister(m->fdm_s.fdms_ffs_ctx.ffsc_src);
m0_fdmi_source_free(m->fdm_s.fdms_ffs_ctx.ffsc_src);
m->fdm_s.fdms_ffs_ctx.ffsc_src = NULL;
return M0_RC(rc);
}
M0_INTERNAL void m0_fol_fdmi_src_fini(void)
{
M0_ENTRY();
m0_fol_fdmi_src_deinit();
M0_LEAVE();
}
M0_INTERNAL int m0_fol_fdmi_src_deinit(void)
{
struct m0_fdmi_module *m = m0_fdmi_module__get();
struct m0_fdmi_src_ctx *src_ctx;
struct m0_be_tx *be_tx;
int rc = 0;
M0_ENTRY();
M0_PRE(m->fdm_s.fdms_ffs_ctx.ffsc_src != NULL);
src_ctx = container_of(m->fdm_s.fdms_ffs_ctx.ffsc_src,
struct m0_fdmi_src_ctx, fsc_src);
M0_PRE(src_ctx->fsc_registered);
M0_PRE(m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_record_post != NULL);
/**
* The deregister below does not call for fs_put/fs_end, so
* we'll have to do call m0_be_tx_put explicitly here, over
* all transactions we've locked.
*/
m0_mutex_lock(&m->fdm_s.fdms_ffs_locked_tx_lock);
m0_tlist_for(&ffs_tx_tl, &m->fdm_s.fdms_ffs_locked_tx_list, be_tx) {
ffs_tx_tlink_del_fini(be_tx);
m0_be_tx_put(be_tx);
/**
* Note we don't reset t_fdmi_ref here, it's a flag
* the record is not yet released by plugins.
*/
} m0_tlist_endfor;
m0_mutex_unlock(&m->fdm_s.fdms_ffs_locked_tx_lock);
m0_mutex_fini(&m->fdm_s.fdms_ffs_locked_tx_lock);
ffs_tx_tlist_fini(&m->fdm_s.fdms_ffs_locked_tx_list);
m0_fdmi_source_deregister(m->fdm_s.fdms_ffs_ctx.ffsc_src);
m0_fdmi_source_free(m->fdm_s.fdms_ffs_ctx.ffsc_src);
m->fdm_s.fdms_ffs_ctx.ffsc_src = NULL;
return M0_RC(rc);
}
/* ------------------------------------------------------------------
* Entry point for FOM to start FDMI processing
* ------------------------------------------------------------------ */
M0_INTERNAL int m0_fol_fdmi_post_record(struct m0_fom *fom)
{
struct m0_fdmi_module *m = m0_fdmi_module__get();
struct m0_dtx *dtx;
struct m0_be_tx *be_tx;
int rc;
M0_ENTRY("fom: %p", fom);
M0_ASSERT(fom != NULL);
M0_ASSERT(m->fdm_s.fdms_ffs_ctx.ffsc_src->fs_record_post != NULL);
/**
* There is no "unpost record" method, so we have to prepare
* everything that may fail -- before calling to post method.
*/
dtx = &fom->fo_tx;
be_tx = &fom->fo_tx.tx_betx;
/** @todo Phase 2: Move inc ref call to FDMI source dock */
ffs_tx_inc_refc(be_tx, NULL);
/* Post record. */
dtx->tx_fol_rec.fr_fdmi_rec.fsr_src = m->fdm_s.fdms_ffs_ctx.ffsc_src;
dtx->tx_fol_rec.fr_fdmi_rec.fsr_dryrun = false;
dtx->tx_fol_rec.fr_fdmi_rec.fsr_data = NULL;
rc = M0_FDMI_SOURCE_POST_RECORD(&dtx->tx_fol_rec.fr_fdmi_rec);
if (rc < 0) {
M0_LOG(M0_ERROR, "Failed to post FDMI record.");
goto error_post_record;
} else {
M0_ENTRY("Posted FDMI rec, src_rec %p, rec id " U128X_F,
&dtx->tx_fol_rec.fr_fdmi_rec,
U128_P(&dtx->tx_fol_rec.fr_fdmi_rec.fsr_rec_id));
}
/* Aftermath. */
/**
* NOTE: IMPORTANT! Do not call anything that may fail here! It is
* not possible to un-post the record; anything that may fail, must be
* done before the M0_FDMI_SOURCE_POST_RECORD call above.
*/
return M0_RC(rc);
error_post_record:
ffs_tx_dec_refc(be_tx, NULL);
return M0_RC(rc);
}
/**
* @} addtogroup fdmi_fol_src
*/
#undef M0_TRACE_SUBSYSTEM
/*
* Local variables:
* c-indentation-style: "K&R"
* c-basic-offset: 8
* tab-width: 8
* fill-column: 80
* scroll-step: 1
* End:
*/
/*
* vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
*/