On 09/03/21 08:54, Jason Wang wrote:
+ return; + + spin_lock(&ctx->wq.lock); + wait_event_interruptible_exclusive_locked(ctx->wq, !ctx->busy);Any reason that a simple mutex_lock_interruptible() can't work here?
Or alternatively why can't the callers just take the spinlock. Paolo
Thanks+ ctx->busy = true;+ spin_unlock(&ctx->wq.lock);