+59
−28
Loading
Use UBLK_F_NEED_GET_DATA to allow our ublk server to allocate buffers on demand rather than pre-allocation. This allows us to generally use a global mempool to satisfy all of the buffer allocations across all devices. Upcoming patches will actually switch this global mempool to iobuf instead. Using iobufs will require more surgery to ublk, so using the global mempool as a stopgap will help with breaking up the series for easier reviews. Change-Id: I2bbd5b47b535c3039f741bde48a5d83dd2818cf3 Signed-off-by:Yifan Bian <yifan.bian@intel.com> Signed-off-by:
Jim Harris <james.r.harris@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16692 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Xiaodong Liu <xiaodong.liu@intel.com>