PCI: remove unneeded lock_kernel() in drivers/pci/syscall.c.
authorDiego Woitasen <diego@woitasen.com.ar>
Wed, 21 Nov 2007 23:07:08 +0000 (15:07 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:21 +0000 (15:04 -0800)
commit0741a951e8489ef2889d9e3eecf33bb29b779dd0
tree687ff8648146dcd4e1ea0da71b46eceb3cd19a22
parent10d7425d201e866ee0c57424860e06118dae2500
PCI: remove unneeded lock_kernel() in drivers/pci/syscall.c.

sys_pciconfig_{read,write}() are protected against PCI removal with the
reference count in struct pci_dev.  The concurrency of
pci_user_{read,write}_config_* functions are already protected by pci_lock
in drivers/pci/access.c.

Signed-off-by: Diego Woitasen <diego@woitasen.com.ar>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/syscall.c