aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2017-04-07 09:34:14 +0200
committerMartin K. Petersen <[email protected]>2017-04-11 20:55:20 -0400
commit1bc0eb0446158cc76562176b80623aa119afee5b (patch)
treef72fe80c00543cbce217db3bc95555fa34b2a09d /tools/perf/scripts/python
parent136e57bf43dc4babbfb8783abbf707d483cacbe3 (diff)
scsi: sg: protect accesses to 'reserved' page array
The 'reserved' page array is used as a short-cut for mapping data, saving us to allocate pages per request. However, the 'reserved' array is only capable of holding one request, so this patch introduces a mutex for protect 'sg_fd' against concurrent accesses. Signed-off-by: Hannes Reinecke <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Tested-by: Johannes Thumshirn <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions