Messages in this thread | | | Subject | Re: atomic copy_from_user? | From | Rob Love <> | Date | Mon, 22 Dec 2003 16:40:11 -0500 |
| |
On Mon, 2003-12-22 at 16:22, Joe Korty wrote:
> I am guessing that nowdays even when preemption is disabled one can > find preempt_count still being used somewhere. Otherwise it would be > better to replace all uses of inc_preempt_count() with > preempt_disable() and dec_preempt_count() with preempt_enable().
Right. So why did you make this patch? :)
inc_preempt_count() and dec_preempt_count() are for use when you _absolutely_ must manage the preemption counter, regardless of whether or not kernel preemption is enabled.
They are used for things like atomic kmaps.
Rob Love
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |