Project

General

Profile

Actions

Feature #3328

open

139: napi_enable() must be paired with napi_disable()

Added by Alexey Khoroshilov over 12 years ago. Updated over 12 years ago.

Status:
Open
Priority:
Normal
Start date:
08/07/2012
Due date:
% Done:

20%

Estimated time:
Published in build:

Description

/**
 *      napi_disable - prevent NAPI from scheduling
 *      @n: napi context
 *
 * Stop NAPI from being scheduled on this context.
 * Waits till any outstanding processing completes.
 */
static inline void napi_disable(struct napi_struct *n);

/**
 *      napi_enable - enable NAPI scheduling
 *      @n: napi context
 *
 * Resume NAPI from being scheduled on this context.
 * Must be paired with napi_disable.
 */
static inline void napi_enable(struct napi_struct *n);

Example of bug:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=5f4a780ddd453c4918555fed9d9c5f2d455a087d


Related issues 1 (1 open0 closed)

Related to Linux Driver Verification - Bug #3346: disable functions from work queueOpenIlja Zakharov08/15/2012

Actions
Actions #1

Updated by Marina Makienko over 12 years ago

  • Assignee set to Marina Makienko
Actions #2

Updated by Marina Makienko over 12 years ago

  • Status changed from New to Open
  • % Done changed from 0 to 20

Currently the model checked
1. after napi_enable() call should be napi_disable() call
2. napi_enable() couldn't be called if there wasn't napi_disable() call

Actions

Also available in: Atom PDF