Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/modeset_lock: document trylock_only in kerneldoc

I've forgotten to do this in:

commit cb597bb3a2fbfc871cc1c703fb330d247bd21394
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Sun Jul 27 19:09:33 2014 +0200

drm: trylock modest locking for fbdev panics

Oops, fix this asap.

In my defense kerneldoc is really awful and there's no way it can pick
up structured comments per struct member. Which means we need both
since people won't scroll up even a few lines.

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>

+1
+1
include/drm/drm_modeset_lock.h
··· 33 33 * @ww_ctx: base acquire ctx 34 34 * @contended: used internally for -EDEADLK handling 35 35 * @locked: list of held locks 36 + * @trylock_only: trylock mode used in atomic contexts/panic notifiers 36 37 * 37 38 * Each thread competing for a set of locks must use one acquire 38 39 * ctx. And if any lock fxn returns -EDEADLK, it must backoff and