• Jens Axboe's avatar
    [PATCH] various ide fixes and cleanups · e00cb941
    Jens Axboe authored
    o Remove some ide compile warnings, old suspend stuff is not used at
      all, for instance.
    
    o If elv_next_request() returns NULL, remember to clear hwgroup->busy
      if we don't have pending commands. This is important. If a queue
      prep function kills a request, we would before quit with hwgroup busy.
      This essentially froze the hwgroup.
    
    o Don't do own list manipulation in ide_do_drive_cmd(). Use the new and
      great elv_add_request() functions
    
    o Fix race on inspection of request after io completion by bumping the
      request reference count prior to ioscheduler insertion.
    
    o Make ide-floppy understand a REQ_BLOCK_PC eject. More may follow, it's
      ATAPI after all.
    
    o Clear hw before passing to ide_init_hwif_ports(). Fixes oops on
      non-pci controllers.
    e00cb941
ide.h 1.64 KB