* [PATCH] ublk: remove UBLK_IO_F_INTEGRITY
@ 2022-07-18 6:30 Christoph Hellwig
2022-07-18 19:13 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2022-07-18 6:30 UTC (permalink / raw)
To: axboe; +Cc: ming.lei, linux-block
The ublk protocol has no mechanism to actually transfer the integrity
metadata, so don't define this flag, which requires that an integrity
payload is attached to a bio.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
drivers/block/ublk_drv.c | 3 ---
include/uapi/linux/ublk_cmd.h | 1 -
2 files changed, 4 deletions(-)
diff --git a/drivers/block/ublk_drv.c b/drivers/block/ublk_drv.c
index 2c1b01d7f27dd..b633d268b90ae 100644
--- a/drivers/block/ublk_drv.c
+++ b/drivers/block/ublk_drv.c
@@ -389,9 +389,6 @@ static inline unsigned int ublk_req_build_flags(struct request *req)
if (req->cmd_flags & REQ_META)
flags |= UBLK_IO_F_META;
- if (req->cmd_flags & REQ_INTEGRITY)
- flags |= UBLK_IO_F_INTEGRITY;
-
if (req->cmd_flags & REQ_FUA)
flags |= UBLK_IO_F_FUA;
diff --git a/include/uapi/linux/ublk_cmd.h b/include/uapi/linux/ublk_cmd.h
index a3f5e7c21807c..d6879eea2fde0 100644
--- a/include/uapi/linux/ublk_cmd.h
+++ b/include/uapi/linux/ublk_cmd.h
@@ -106,7 +106,6 @@ struct ublksrv_ctrl_dev_info {
#define UBLK_IO_F_FAILFAST_TRANSPORT (1U << 9)
#define UBLK_IO_F_FAILFAST_DRIVER (1U << 10)
#define UBLK_IO_F_META (1U << 11)
-#define UBLK_IO_F_INTEGRITY (1U << 12)
#define UBLK_IO_F_FUA (1U << 13)
#define UBLK_IO_F_PREFLUSH (1U << 14)
#define UBLK_IO_F_NOUNMAP (1U << 15)
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ublk: remove UBLK_IO_F_INTEGRITY
2022-07-18 6:30 [PATCH] ublk: remove UBLK_IO_F_INTEGRITY Christoph Hellwig
@ 2022-07-18 19:13 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2022-07-18 19:13 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-block, ming.lei
On Mon, 18 Jul 2022 08:30:13 +0200, Christoph Hellwig wrote:
> The ublk protocol has no mechanism to actually transfer the integrity
> metadata, so don't define this flag, which requires that an integrity
> payload is attached to a bio.
>
>
Applied, thanks!
[1/1] ublk: remove UBLK_IO_F_INTEGRITY
commit: d276a22314c2bad9136c5e0b09eb3c8a560e1161
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-18 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18 6:30 [PATCH] ublk: remove UBLK_IO_F_INTEGRITY Christoph Hellwig
2022-07-18 19:13 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.