aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2022-10-18 13:29:49 -0700
committerMartin K. Petersen <[email protected]>2022-10-22 03:25:59 +0000
commit978b7922d3dca672b41bb4b8ce6c06ab77112741 (patch)
treee54031ca580b303bb49ece4e575ed20f2cdf5676 /tools/perf/scripts/python/mem-phys-addr.py
parent24b3e45ca9c53185baec34488efcb75bbe162f7a (diff)
scsi: core: Fix a race between scsi_done() and scsi_timeout()
If there is a race between scsi_done() and scsi_timeout() and if scsi_timeout() loses the race, scsi_timeout() should not reset the request timer. Hence change the return value for this case from BLK_EH_RESET_TIMER into BLK_EH_DONE. Although the block layer holds a reference on a request (req->ref) while calling a timeout handler, restarting the timer (blk_add_timer()) while a request is being completed is racy. Reviewed-by: Mike Christie <[email protected]> Cc: Keith Busch <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Ming Lei <[email protected]> Cc: John Garry <[email protected]> Cc: Hannes Reinecke <[email protected]> Reported-by: Adrian Hunter <[email protected]> Fixes: 15f73f5b3e59 ("blk-mq: move failure injection out of blk_mq_complete_request") Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions