numam-spdk/lib/vhost
Changpeng Liu e18788d30e vhost-blk: process VIRTIO_BLK_WRITE_ZEROES_FLAG_UNMAP correctly
Flag VIRTIO_BLK_WRITE_ZEROES_FLAG_UNMAP is only used for WRITE
ZEROES command, vhost-blk target may tell VM via 'write_zeroes_may_unmap'
configuration that the backend can support this flag, however, Linux
generic block driver doesn't have such logic, it will enable this
flag by default(without REQ_NOUNMAP) with WRITE ZEROES command,
so the backend may choose to ignore this flag, because WRITE ZEROES
with this flag isn't mandatory.

Fix issue #1714.

Change-Id: Ic9388f39269720a23c00d41cba585d2a5abc3cfb
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5565
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: <dongx.yi@intel.com>
2020-12-28 13:17:00 +00:00
..
Makefile vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
rte_vhost_compat.c vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
spdk_vhost.map lib/vhost: Remove and inline spdk_vhost_blk_get_dev 2020-06-08 09:28:27 +00:00
vhost_blk.c vhost-blk: process VIRTIO_BLK_WRITE_ZEROES_FLAG_UNMAP correctly 2020-12-28 13:17:00 +00:00
vhost_internal.h vhost-blk: record inflight descs of packed ring 2020-12-16 08:56:12 +00:00
vhost_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
vhost_scsi.c vhost-scsi: fix hang when removing target 2020-11-19 09:23:39 +00:00
vhost.c vhost-blk: record inflight descs of packed ring 2020-12-16 08:56:12 +00:00