[lkml]   [2020]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/3] drivers: base: Support atomic version of attribute_container_device_trigger
On Mon, Jan 06, 2020 at 01:58:15PM -0500, Gabriel Krisman Bertazi wrote:
> attribute_container_device_trigger invokes callbacks that may fail for
> one or more classdev's, for instance, the transport_add_class_device
> callback, called during transport creation, does memory allocation.
> This information, though, is not propagated to upper layers, and any
> driver using the attribute_container_device_trigger API will not know
> whether any, some, or all callbacks succeeded.
> This patch implements a safe version of this dispatcher, to either
> succeed all the callbacks or revert to the original state.
> Signed-off-by: Gabriel Krisman Bertazi <>

Reviewed-by: Greg Kroah-Hartman <>

 \ /
  Last update: 2020-01-14 16:05    [W:0.050 / U:40.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site