aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorMikulas Patocka <[email protected]>2018-07-03 13:34:22 -0400
committerJens Axboe <[email protected]>2018-07-09 09:07:54 -0600
commitb88aef36b87c9787a4db724923ec4f57dfd513f3 (patch)
tree9d493ac5c131c41f719877fb632493d99b6614e7 /tools/perf/scripts/python/call-graph-from-sql.py
parentc137969bd4c5b2a67803d10518e3d60d3b13d0cb (diff)
block: fix infinite loop if the device loses discard capability
If __blkdev_issue_discard is in progress and a device mapper device is reloaded with a table that doesn't support discard, q->limits.max_discard_sectors is set to zero. This results in infinite loop in __blkdev_issue_discard. This patch checks if max_discard_sectors is zero and aborts with -EOPNOTSUPP. Signed-off-by: Mikulas Patocka <[email protected]> Tested-by: Zdenek Kabelac <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions