aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/test.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2018-09-13 00:21:11 +0000
committerJens Axboe <[email protected]>2018-09-13 00:21:11 +0000
commitb228ba1cb95afbaeeb86cf06cd9fd6f6369c3b14 (patch)
tree19edd5ec97cfb6aff00875f301fecde258eba351 /tools/testing/radix-tree/test.c
parentblk-cgroup: increase number of supported policies (diff)
downloadkernel-b228ba1cb95afbaeeb86cf06cd9fd6f6369c3b14.tar.gz
kernel-b228ba1cb95afbaeeb86cf06cd9fd6f6369c3b14.zip
null_blk: fix zoned support for non-rq based operation
The supported added for zones in null_blk seem to assume that only rq based operation is possible. But this depends on the queue_mode setting, if this is set to 0, then cmd->bio is what we need to be operating on. Right now any attempt to load null_blk with queue_mode=0 will insta-crash, since cmd->rq is NULL and null_handle_cmd() assumes it to always be set. Make the zoned code deal with bio's instead, or pass in the appropriate sector/nr_sectors instead. Fixes: ca4b2a011948 ("null_blk: add zone support") Tested-by: Omar Sandoval <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/test.c')
0 files changed, 0 insertions, 0 deletions