From deacebd5d5788b6dcc49a06f1ffdec14991924aa Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Fri, 12 Jul 2019 04:10:50 -0400 Subject: [PATCH] test/blockdev: remove dependency on brd kernel module AIO bdev works on any file available from kernel. blockdev.sh is the only palce that uses the ramdisk in the current autotest.sh. After removing the /dev/ram0, aio bdev still gets tested with regular file. Note: the QoS functionality done on AIO0 still gets tested in usual qos.sh tests. Change-Id: I8d219206d49626582d5848239fb0c36b25ef92a1 Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/461594 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Darek Stojaczyk Reviewed-by: Shuhei Matsumoto --- autotest.sh | 4 ---- test/bdev/bdev.conf.in | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/autotest.sh b/autotest.sh index 038591368..b53f1d464 100755 --- a/autotest.sh +++ b/autotest.sh @@ -114,10 +114,6 @@ done sync -if [ $(uname -s) = Linux ]; then - # Load RAM disk driver if available - modprobe brd || true -fi timing_exit cleanup # set up huge pages diff --git a/test/bdev/bdev.conf.in b/test/bdev/bdev.conf.in index bed438645..b80b4fefd 100644 --- a/test/bdev/bdev.conf.in +++ b/test/bdev/bdev.conf.in @@ -15,8 +15,7 @@ Split Malloc2 8 4 [AIO] - AIO /dev/ram0 AIO0 - AIO /tmp/aiofile AIO1 2048 + AIO /tmp/aiofile AIO0 2048 [QoS] # QoS section defines limitation on performance @@ -35,8 +34,6 @@ # Assign 100 (MB) bandwidth for the Malloc3 block # device Limit_BPS Malloc3 100 - # Assign 50 (MB) read only bandwidth for the AIO0 block device - Limit_Read_BPS AIO0 50 [RAID0] Name raid0