|
@@ -142,10 +142,9 @@ static void clean_wctx(struct pblk_w_ctx *w_ctx)
|
|
{
|
|
{
|
|
int flags;
|
|
int flags;
|
|
|
|
|
|
-try:
|
|
|
|
flags = READ_ONCE(w_ctx->flags);
|
|
flags = READ_ONCE(w_ctx->flags);
|
|
- if (!(flags & PBLK_SUBMITTED_ENTRY))
|
|
|
|
- goto try;
|
|
|
|
|
|
+ WARN_ONCE(!(flags & PBLK_SUBMITTED_ENTRY),
|
|
|
|
+ "pblk: overwriting unsubmitted data\n");
|
|
|
|
|
|
/* Release flags on context. Protect from writes and reads */
|
|
/* Release flags on context. Protect from writes and reads */
|
|
smp_store_release(&w_ctx->flags, PBLK_WRITABLE_ENTRY);
|
|
smp_store_release(&w_ctx->flags, PBLK_WRITABLE_ENTRY);
|