On Thu, Jun 16, 2016 at 01:17:29PM +0200, Petr Mladek wrote: > +/* > + * Returns true when the work could not be queued at the moment. > + * It happens when it is already pending in a worker list > + * or when it is being cancelled. > + * > + * This function must be called under work->worker->lock. Replace the comment with a lockdep assertion? > + */ > +static inline bool queuing_blocked(const struct kthread_work *work) > +{ > + return !list_empty(&work->node) || work->canceling; > +} Other than that, Acked-by: Tejun Heo <tj@xxxxxxxxxx> Thanks. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>