diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2020-12-17 00:58:47 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2020-12-17 07:54:51 -0700 |
| commit | 1aba169e770911fb2afa63eb859883c4de2191e3 (patch) | |
| tree | 47667f78d1afad25b8102b0871083489bc867e4d /tools/perf/scripts/python | |
| parent | block/rnbd-clt: Does not request pdu to rtrs-clt (diff) | |
| download | linux-1aba169e770911fb2afa63eb859883c4de2191e3.tar.gz linux-1aba169e770911fb2afa63eb859883c4de2191e3.zip | |
nbd: Respect max_part for all partition scans
The creation path of the NBD device respects max_part and only scans for
partitions if max_part is not 0. However, some other code paths ignore
max_part, and unconditionally scan for partitions. Add a check for
max_part on each partition scan.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
