Skip to content

Commit

Permalink
lxd/storage/drivers/powerflex: Use driver name for global lock
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Dec 20, 2024
1 parent fa9d184 commit 94673fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxd/storage/drivers/driver_powerflex_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ func (d *powerflex) mapVolume(vol Volume) (revert.Hook, error) {

switch d.config["powerflex.mode"] {
case powerFlexModeNVMe:
unlock, err := locking.Lock(d.state.ShutdownCtx, "nvme")
unlock, err := locking.Lock(d.state.ShutdownCtx, "storage_powerflex_nvme")
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -1104,7 +1104,7 @@ func (d *powerflex) unmapVolume(vol Volume) error {
return err
}

unlock, err := locking.Lock(d.state.ShutdownCtx, "nvme")
unlock, err := locking.Lock(d.state.ShutdownCtx, "storage_powerflex_nvme")
if err != nil {
return err
}
Expand Down

0 comments on commit 94673fa

Please sign in to comment.