DragonFly BSD
DragonFly commits List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix SILI callout timer race


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 Jan 2012 12:56:44 -0800 (PST)

commit e27434d7864e9fb4463c99205dbd3eff78bdcae7
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Jan 23 12:55:33 2012 -0800

    kernel - Fix SILI callout timer race
    
    * Do similar fix for SILI that we did for AHCI.
    
    * callout_stop_sync() can block.  If this occurs a race can cause a
      CCB to be processed for completion twice.
    
    * Add a serial number to detect this situation.
    
    * If the serial number does not match after the timeout is stopped
       we don't want to mess with the xa at all.
    
    Tested-by: lentferj

Summary of changes:
 sys/dev/disk/sili/atascsi.h |    1 +
 sys/dev/disk/sili/sili.c    |   20 ++++++++++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]