cvs commit: src/sys/dev/disk/nata ata-chipset.c ata-disk.c ata-dma.c atapi-cam.c atapi-cd.c atapi-fd.c atapi-tape.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 2 21:49:17 PDT 2007


dillon      2007/06/02 21:48:29 PDT

DragonFly src repository

  Modified files:
    sys/dev/disk/nata    ata-chipset.c ata-disk.c ata-dma.c 
                         atapi-cam.c atapi-cd.c atapi-fd.c 
                         atapi-tape.c 
  Log:
  M_NOWAIT can only be used in a driver where a failed memory allocation is
  recoverable, such as in a network driver.  FreeBSD seems to have a looser
  definition but in DragonFly M_NOWAIT really means M_NOWAIT ... any blocking
  at all, including waiting on the BGL or getting the kernel_map lock,
  will result in a failure NULL.
  
  Change all M_NOWAIT's to either M_WAITOK or M_INTWAIT.
  
  Revision  Changes    Path
  1.6       +6 -6      src/sys/dev/disk/nata/ata-chipset.c
  1.5       +1 -6      src/sys/dev/disk/nata/ata-disk.c
  1.3       +11 -12    src/sys/dev/disk/nata/ata-dma.c
  1.6       +8 -19     src/sys/dev/disk/nata/atapi-cam.c
  1.7       +9 -29     src/sys/dev/disk/nata/atapi-cd.c
  1.4       +1 -6      src/sys/dev/disk/nata/atapi-fd.c
  1.3       +1 -6      src/sys/dev/disk/nata/atapi-tape.c


http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/ata-chipset.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/ata-disk.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/ata-dma.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/atapi-cam.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/atapi-cd.c.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/atapi-fd.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/atapi-tape.c.diff?r1=1.2&r2=1.3&f=u





More information about the Commits mailing list