Re: libata and pm

From: Jeff Garzik (jgarzik_at_pobox.com)
Date: 11/30/03

  • Next message: Jan Bernatik: "acpi poweroff problem (kernel > 2.4.23-rc1)"
    Date:	Sun, 30 Nov 2003 11:02:07 -0500
    To: "Prakash K. Cheemplavam" <prakashpublic@gmx.de>
    
    
    

    Prakash K. Cheemplavam wrote:
    > Hi,
    >
    > I wonder whether libata can easily be made compatible with swsup or pmdisk.
    >
    > Currently my tries stop with the message:
    >
    > PM: Preparing system for suspend
    > Stopping tasks:
    > =================================================exiting...========
    > stopping tasks failed (1 tasks remaining)
    > Restarting tasks...<6> Strange, katad-1 not stopped
    > done
    >
    >
    > I think that katad belongs to libata.

    I'm curious if this [completely untested] patch works? :)

            Jeff

    
    

    ===== drivers/scsi/libata-core.c 1.7 vs edited =====
    --- 1.7/drivers/scsi/libata-core.c Mon Nov 24 11:19:30 2003
    +++ edited/drivers/scsi/libata-core.c Sun Nov 30 11:01:26 2003
    @@ -2567,6 +2567,9 @@
     
                     timeout = ata_thread_iter(ap);
     
    + if (current->flags & PF_FREEZE)
    + refrigerator(PF_IOTHREAD);
    +
                     if (signal_pending (current))
                             flush_signals(current);
     

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jan Bernatik: "acpi poweroff problem (kernel > 2.4.23-rc1)"

    Relevant Pages

    • Re: ioctls, etc. (was Re: [PATCH 1/4] sas: add flag for locally attached PHYs)
      ... a downplay that I didn't include the same thing in struct sas_ha_struct. ... The host template _mixes_ hw, scsi core, and protocol knowlege into ... libata isn't without architectural problems. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] QStor SATA/RAID driver for 2.6.9-rc3
      ... > If those locks are not needed, the scsi.c maintainer really should ... >> work for emulated commands. ... libata does all this correctly. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Who is working on the Marvell SATA Chipset?
      ... On Tue, 12 Oct 2004, Andy Warner wrote: ... > etc etc, and ignore libata, so if ... I would love to be buying the 8 port pci-x marvells for nas boxes where ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [GIT PATCH] PCI patches for 2.6.15 - retry
      ... Unable to handle kernel NULL pointer dereference at virtual address ... The SATA ports have no PCI resources assigned ... libata should recognize this and not attempt to iomap or drive ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Configure IDE probe delays
      ... I will check into libata. ... Our current testing seems to indicate that shortened delays ... maintain a patch at CELF for interested parties, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)