From: Linus Torvalds Date: Thu, 28 Oct 2010 01:34:59 +0000 (-0700) Subject: proc_bus_pci_ioctl: remove pointless BKL usage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b2d8d9e562de3ee2476f549549e4fefbb7a4213;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 01f0306525a5..895136f13edc 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c @@ -212,8 +212,6 @@ static long proc_bus_pci_ioctl(struct file *file, unsigned int cmd, #endif /* HAVE_PCI_MMAP */ int ret = 0; - lock_kernel(); - switch (cmd) { case PCIIOC_CONTROLLER: ret = pci_domain_nr(dev->bus); @@ -242,7 +240,6 @@ static long proc_bus_pci_ioctl(struct file *file, unsigned int cmd, break; }; - unlock_kernel(); return ret; }