Re: [PATCH] edac, poll timeout cannot be zero

From: Borislav Petkov
Date: Wed Feb 12 2014 - 11:36:58 EST


On Wed, Feb 12, 2014 at 11:23:11AM -0500, Tejun Heo wrote:
> Hah... can't you just do it on object initialization? It's a bit
> nasty and fragile to game initialization state.
>
> > or so... I.e., what PREPARE_WORK() does?
>
> It allows you to change the callback without breaking the
> synchronization. Of course, if there's a pending work item, it may or
> may not execute the newly assigned function. It's also a bit nasty
> and has only few users in the whole kernel and I think we might wanna
> get rid of them.

Yeah, no, I certainly don't have to touch wq inner organs - I was
wondering whether there's such functionality already. The simple patch I
sent earlier should be good enough then.

Thanks!

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/