Remove unneeded CAM_SIM_MPSAFE check.
This commit is contained in:
parent
70f2d05499
commit
f96d66a41e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196901
@ -4407,10 +4407,7 @@ xpt_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id)
|
||||
device->tag_delay_count = 0;
|
||||
device->tag_saved_openings = 0;
|
||||
device->refcount = 1;
|
||||
if (bus->sim->flags & CAM_SIM_MPSAFE)
|
||||
callout_init_mtx(&device->callout, bus->sim->mtx, 0);
|
||||
else
|
||||
callout_init_mtx(&device->callout, &Giant, 0);
|
||||
callout_init_mtx(&device->callout, bus->sim->mtx, 0);
|
||||
|
||||
/*
|
||||
* Hold a reference to our parent target so it
|
||||
|
Loading…
Reference in New Issue
Block a user