mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
hptiop: Remove Giant locking around ioctls.
The methods have their own locking and don't require Giant. MFC after: 2 weeks
This commit is contained in:
parent
63e0f96ace
commit
e06c67eef8
1 changed files with 0 additions and 5 deletions
|
|
@ -214,8 +214,6 @@ static int hptiop_ioctl(ioctl_dev_t dev, u_long cmd, caddr_t data,
|
|||
int ret = EFAULT;
|
||||
struct hpt_iop_hba *hba = hba_from_dev(dev);
|
||||
|
||||
mtx_lock(&Giant);
|
||||
|
||||
switch (cmd) {
|
||||
case HPT_DO_IOCONTROL:
|
||||
ret = hba->ops->do_ioctl(hba,
|
||||
|
|
@ -225,9 +223,6 @@ static int hptiop_ioctl(ioctl_dev_t dev, u_long cmd, caddr_t data,
|
|||
ret = hptiop_rescan_bus(hba);
|
||||
break;
|
||||
}
|
||||
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue