nvmeof connector: race condition in create_hostnqn
Bug #1961253 reported by
Brian Rosmaita
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Triaged
|
Medium
|
Unassigned |
Bug Description
Gorka noticed this in reviewing a change to os_brick/
create_hostnqn() checks for the existence of a file containing a previously generated hostnqn, and if it's not there, generates a new one and writes the file. This function needs a file lock, because 2 threads/processes could be checking for the existence of the file, not find it, and both proceed to create the hostnqn.
Changed in os-brick: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.