Messages in this thread | | | Date | Mon, 22 Dec 2003 17:06:11 -0500 | From | Joe Korty <> | Subject | Re: atomic copy_from_user? |
| |
On Mon, Dec 22, 2003 at 03:55:06PM -0500, Rob Love wrote: > On Mon, 2003-12-22 at 13:26, Joe Korty wrote: > > > Shouldn't the dec_prempt_count() in kunmap_atomic() be followed > > by a preempt_check_resched()??? > > Probably. > > Actually, dec_preempt_count() ought to call preempt_check_resched() > itself. In the case of !CONFIG_PREEMPT, that call would simply optimize > away. > > Attached patch is against 2.6.0.
If this is done then preempt_enable_no_resched() and preempt_enable() also need to be adjusted, as they both call dec_preempt_count().
Joe - 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/
| |