On Fri, 10 Feb 2023 09:13:56 -0500, Liu Xiaodong wrote: > Currently, uring_cmd with UBLK_IO_FETCH_REQ or > UBLK_IO_COMMIT_AND_FETCH_REQ is always checked whether > userspace server has provided IO buffer even flag > UBLK_F_NEED_GET_DATA is configured. > > This is a excessive check. If UBLK_F_NEED_GET_DATA is > configured, FETCH_RQ doesn't need to provide IO buffer; > COMMIT_AND_FETCH_REQ also doesn't need to do that if > the IO type is not READ. > > [...] Applied, thanks! [1/1] block: ublk: check IO buffer based on flag need_get_data commit: 2f1e07dda1e1310873647abc40bbc49eaf3b10e3 Best regards, -- Jens Axboe