lkml.org 
[lkml]   [2003]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: atomic copy_from_user?
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.118 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site