On 2023-04-18 21:46, Chaitanya Kulkarni wrote: > On 4/18/23 04:41, Pankaj Raghav wrote: >> >> This is not correct. You need to use radix_tree_maybe_preload because >> GFP_NOWAIT should not block and this WARN_ON_ONCE flag will trigger in >> radix_tree_preload: >> >> /* Warn on non-sensical use... */ >> WARN_ON_ONCE(!gfpflags_allow_blocking(gfp_mask)); >> >> I also verified this locally with your patch and while doing a simple fio >> write with setting memory_backed=1. >> >> > > plz share the exact fio job you have used to generate this error, > I need add that to the patch testlog. > This should do it: $ modprobe null_blk nowait=1 queue_mode=0 memory_backed=1 $ fio -iodepth=1 -rw=write -ioengine=io_uring -size=2M -name=io_uring_1 -filename=/dev/nullb0