libublksrv: add API of ublksrv_dev_set_cq_depth/ublksrv_dev_get_cq_depth

Add APIs for set/get queue's io_uring cq depth.

The default ublk cq depth is same with sq depth, which is actually
not aligned with io_uring default setting, in which cq depth which
is 2 * sq_depth.

Turns out it isn't enough for some targets, such as nbd with send_zc
which needs one extra cqe for sending send buffer notification.

So add APIs for target code to override default cq depth.

Signed-off-by: Ming Lei <[email protected]>
4 files changed