Skip to content

Commit

Permalink
proc_bus_pci_ioctl: remove pointless BKL usage
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
torvalds committed Oct 28, 2010
1 parent 22cdbd1 commit 0b2d8d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/pci/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -242,7 +240,6 @@ static long proc_bus_pci_ioctl(struct file *file, unsigned int cmd,
break;
};

unlock_kernel();
return ret;
}

Expand Down

0 comments on commit 0b2d8d9

Please sign in to comment.