• J
    libata: separate error handler into usable components · 0e0b494c
    James Bottomley 提交于
    Right at the moment, the libata error handler is incredibly
    monolithic.  This makes it impossible to use from composite drivers
    like libsas and ipr which have to handle error themselves in the first
    instance.
    
    The essence of the change is to split the monolithic error handler
    into two components: one which handles a queue of ata commands for
    processing and the other which handles the back end of readying a
    port.  This allows the upper error handler fine grained control in
    calling libsas functions (and making sure they only get called for ATA
    commands whose lower errors have been fixed up).
    Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
    Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
    0e0b494c
libata-eh.c 105.5 KB