git: kernel - Remove unnecessary mplock from ata I/O path

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 10 15:00:31 PST 2012


commit cf5f86b6a177ae06633f7456d6414de7aca47f1b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Dec 10 14:59:38 2012 -0800

    kernel - Remove unnecessary mplock from ata I/O path
    
    * ata_finish() doesn't need the MP Lock; moving it from taskqueue_swi
      to taskqueue_swi_mp will make sure it's not taken.
    
    * Note that taskqueue_swi(_mp) will be processed when this ithread
      attempts to switch back to the thread it preempted. This means that
      taskqueue_swi(_mp) processing exclude processing further interrupts
      on the ithread while they're running. This may not be desirable and
      is different than taskqueue_swi / swi_* / setsoft* in FreeBSD 4.x.
    
    Submitted-by: vsrinivas

Summary of changes:
 sys/dev/disk/nata/ata-queue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cf5f86b6a177ae06633f7456d6414de7aca47f1b


-- 
DragonFly BSD source repository


More information about the Commits mailing list