diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-09 14:49:01 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-09 16:39:21 +0100 |
commit | d85cb20453bc98da47ab4393a1a05afcafb39a0f (patch) | |
tree | 8a8aadf3a0b676530d14e7745cfdbdcba8a8a77f /drivers/block/mtip32xx/mtip32xx.h | |
parent | mtip32xx: remove mtip_get_int_command (diff) | |
download | linux-d85cb20453bc98da47ab4393a1a05afcafb39a0f.tar.xz linux-d85cb20453bc98da47ab4393a1a05afcafb39a0f.zip |
mtip32xx: don't use req->special
Instead create add to the icmd into struct mtip_cmd which can be unioned
with the scatterlist used for the normal I/O path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 63414928f07c..c33f8c3d9fb4 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h @@ -321,6 +321,8 @@ struct mtip_cmd_sg { }; struct mtip_port; +struct mtip_int_cmd; + /* Structure used to describe a command. */ struct mtip_cmd { void *command; /* ptr to command table entry */ @@ -331,7 +333,10 @@ struct mtip_cmd { int unaligned; /* command is unaligned on 4k boundary */ - struct scatterlist sg[MTIP_MAX_SG]; /* Scatter list entries */ + union { + struct scatterlist sg[MTIP_MAX_SG]; /* Scatter list entries */ + struct mtip_int_cmd *icmd; + }; int retries; /* The number of retries left for this command. */ |