diff options
| author | Hannes Reinecke <[email protected]> | 2020-02-13 16:32:06 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-02-24 14:54:25 -0500 |
| commit | 1c7ce4bcfb9a54073d4043c00a336a064ca6e231 (patch) | |
| tree | 5bdfe2a328f90da7cfd7de9a032d5b14c66f52cb /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 66167283c21ef8ce35253397108263bdab258992 (diff) | |
scsi: ch: synchronize ch_probe() and ch_open()
The 'ch' device node is created before the configuration is being read in,
which leads to a race window when ch_open() is called before that.
To avoid any races we should be taking the device mutex during
ch_readconfig() and ch_init_elem(), and also during ch_open().
That ensures ch_probe is finished before ch_open() completes.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions