diff options
author | ken <ken@FreeBSD.org> | 2012-12-09 19:53:21 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2012-12-09 19:53:21 +0000 |
commit | 287e4f6a6baae6598a7ebb9580a440bbff2f9113 (patch) | |
tree | 09c72328c6e67b6e8ed0c793d8fd837be09a3719 /sys/kern/vfs_mount.c | |
parent | d004c46035fec779a966e34d3480a59fd6ea06fd (diff) | |
download | FreeBSD-src-287e4f6a6baae6598a7ebb9580a440bbff2f9113.zip FreeBSD-src-287e4f6a6baae6598a7ebb9580a440bbff2f9113.tar.gz |
Fix a couple of CTL locking issues and clean up some duplicated code.
ctl_frontend_cam_sim.c: Coalesce cfcs_online() and cfcs_offline()
into a single function since these were
identical except for one line.
Make sure we hold the SIM lock around path
creation, and calling xpt_rescan().
scsi_ctl.c: In ctlfe_onoffline(), make sure we hold the
SIM lock around path creation and free
calls, as well as xpt_action().
In ctlfe_lun_enable(), hold the SIM lock
around path and peripheral operations that
require it.
Sponsored by: Spectra Logic Corporation
MFC after: 1 week
Diffstat (limited to 'sys/kern/vfs_mount.c')
0 files changed, 0 insertions, 0 deletions