]> git.hungrycats.org Git - linux/commit
[PATCH] pci/pool.c less spinlock abuse
authorDavid Brownell <david-b@pacbell.net>
Mon, 7 Oct 2002 02:54:53 +0000 (19:54 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 7 Oct 2002 02:54:53 +0000 (19:54 -0700)
commit6ebb1e2d3e244a21a03579c0b490f1608482f5bb
tree63e095d6b299cfcd06f5f18ac0e49f44f21035db
parent38b4e74829cc1b7a0870848f9c0900a843f6b9fc
[PATCH] pci/pool.c less spinlock abuse

That previous patch got rid of a boot time might_sleep() warning,
but I noticed two later on:

  - kmalloc() needed SLAB_ATOMIC

  - destroying the 'pools' driverfs attribute could sleep too

The clean/simple patch for the second one tweaked an API:

  - pci_pool_create() can't be called in_interrupt() any more.
    nobody used it there, and such support isn't needed; plus
    that rule matches its sibling call, pci_pool_destroy().

  - that made its SLAB_* flags parameter more useless, so it's
    removed and the DMA-mapping.txt is updated.  (this param
    was more trouble than it was worth -- good that it's gone.)

Nobody (even DaveM) objected to those API changes, so I think
this should be merged.
Documentation/DMA-mapping.txt
drivers/ieee1394/amdtp.c
drivers/pci/pool.c
drivers/usb/core/buffer.c
drivers/usb/host/ehci-mem.c
drivers/usb/host/ohci-mem.c
drivers/usb/host/uhci-hcd.c
include/linux/pci.h