aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBalbir Singh <[email protected]>2020-03-13 05:30:05 +0000
committerJens Axboe <[email protected]>2020-03-18 15:13:21 -0600
commite598a72faeb543599bdf0d930df3a71906404e6f (patch)
tree140f53a0a76614caf6c1bfddfdd883cc2f887ae0 /tools/perf/scripts/python
parentde6a78b601c529398ad1448e3bffcade1fcf5a70 (diff)
block/genhd: Notify udev about capacity change
Allow block/genhd to notify user space (via udev) about disk size changes using a new helper set_capacity_revalidate_and_notify(), which is a wrapper on top of set_capacity(). set_capacity_revalidate_and_notify() will only notify via udev if the current capacity or the target capacity is not zero and iff the capacity changes. Suggested-by: Christoph Hellwig <[email protected]> Signed-off-by: Someswarudu Sangaraju <[email protected]> Signed-off-by: Balbir Singh <[email protected]> Reviewed-by: Bob Liu <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions