mbox series

[blktests,0/3] Support max_active_zones

Message ID 20201001101531.333879-1-shinichiro.kawasaki@wdc.com (mailing list archive)
Headers show
Series Support max_active_zones | expand

Message

Shin'ichiro Kawasaki Oct. 1, 2020, 10:15 a.m. UTC
Linux kernel 5.9 introduced a new sysfs attribute "max_active_zones". It
is an attribute of zoned block devices which indicates the limit of zones
in open or close status. When zoned block devices has this limit, test cases
block/004 and zbd/003 fail since write operations in them open zones and the
number of open zones excceds the limit.

This patch series addresses the failures. The first patch introduces a
helper function to get the max_active_zones value. Following patches modify
the two test cases to avoid the failures.

Shin'ichiro Kawasaki (3):
  common/rc: Add _test_dev_max_active_zones() helper function
  block/004: Provide max_active_zones to fio command
  zbd/003: Reset zones when the test device has max_active_zones limit

 common/rc       | 8 ++++++++
 tests/block/004 | 9 ++++-----
 tests/zbd/003   | 5 +++++
 3 files changed, 17 insertions(+), 5 deletions(-)