Browse Source

proc_bus_pci_ioctl: remove pointless BKL usage

The BKL was pushed into this function when it was converted to use the
unlocked_ioctl interface, but nothing that the function touches is
actually protected by the BKL.  So just remove the BKL entirely, so that
we finally can get a realistic system build without the BKL being
enabled at all.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Linus Torvalds 14 years ago
parent
commit
0b2d8d9e56
1 changed files with 0 additions and 3 deletions
  1. 0 3
      drivers/pci/proc.c

+ 0 - 3
drivers/pci/proc.c

@@ -212,8 +212,6 @@ static long proc_bus_pci_ioctl(struct file *file, unsigned int cmd,
 #endif /* HAVE_PCI_MMAP */
 #endif /* HAVE_PCI_MMAP */
 	int ret = 0;
 	int ret = 0;
 
 
-	lock_kernel();
-
 	switch (cmd) {
 	switch (cmd) {
 	case PCIIOC_CONTROLLER:
 	case PCIIOC_CONTROLLER:
 		ret = pci_domain_nr(dev->bus);
 		ret = pci_domain_nr(dev->bus);
@@ -242,7 +240,6 @@ static long proc_bus_pci_ioctl(struct file *file, unsigned int cmd,
 		break;
 		break;
 	};
 	};
 
 
-	unlock_kernel();
 	return ret;
 	return ret;
 }
 }