On 1/9/24 02:44, Shin'ichiro Kawasaki wrote: > The test case block/031 sets null_blk parameter shared_tag_bitmap=1 for > testing. The parameter has been set as a module parameter then null_blk > driver must be loadable. However, null_blk allows to set > shared_tag_bitmap as a configfs parameter since the kernel commit > 7012eef520cb ("null_blk: add configfs variables for 2 options"). Then > the test case now can be run with built-in null_blk driver by specifying > shared_tag_bitmap through configfs. > > Modify the test case for that purpose. Refer null_blk feature list and > check if shared_tag_bitmap can be specified through configfs. If so, > specify the parameter as an option of _configure_null_blk and set it > through configfs. If not, check in requires() that shared_tag_bitmap can > be specified as a module parameter. Then call _init_null_blk() in test() > and specify shared_tag_bitmap=1 at null_blk module load. > > Also change null_blk device name from nullb0 to nullb1 since the default > null_blk device name nullb0 is not usable with built-in null_blk driver. > > Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> > --- > Looks good. Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx> -ck