M_NOWAIT can only be used in a driver where a failed memory allocation is
commitb48b0daf2bcc89904730edc7614f7f4b62dfbd22
authordillon <dillon>
Sun, 3 Jun 2007 04:48:29 +0000 (3 04:48 +0000)
committerdillon <dillon>
Sun, 3 Jun 2007 04:48:29 +0000 (3 04:48 +0000)
treecf43bb8228cfa189fa0f206c664090a2d118e74c
parenta0a99990217787196087b7bdca9dd086b6347ef7
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.
sys/dev/disk/nata/ata-chipset.c
sys/dev/disk/nata/ata-disk.c
sys/dev/disk/nata/ata-dma.c
sys/dev/disk/nata/atapi-cam.c
sys/dev/disk/nata/atapi-cd.c
sys/dev/disk/nata/atapi-fd.c
sys/dev/disk/nata/atapi-tape.c