summaryrefslogtreecommitdiff
path: root/drivers/block/rnbd/rnbd-srv-dev.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-01-24 12:10:59 +0300
committerJens Axboe <axboe@kernel.dk>2022-02-02 17:49:59 +0300
commitd7b78de2b1552e3e7ce3a069f075cc2729aa5c34 (patch)
treea166cf3080a9ff66ea42b2282637aed194e7c7e8 /drivers/block/rnbd/rnbd-srv-dev.c
parent1fe0640ff94feae6d21417e2f4f2829b882274b1 (diff)
downloadlinux-d7b78de2b1552e3e7ce3a069f075cc2729aa5c34.tar.xz
rnbd-srv: remove struct rnbd_dev_blk_io
Only the priv field of rnbd_dev_blk_io is used, so store the value of that in bio->bi_private directly and remove the entire bio_set overhead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Link: https://lore.kernel.org/r/20220124091107.642561-12-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rnbd/rnbd-srv-dev.c')
-rw-r--r--drivers/block/rnbd/rnbd-srv-dev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/rnbd/rnbd-srv-dev.c b/drivers/block/rnbd/rnbd-srv-dev.c
index 98d3e591a088..c5d0a0391165 100644
--- a/drivers/block/rnbd/rnbd-srv-dev.c
+++ b/drivers/block/rnbd/rnbd-srv-dev.c
@@ -12,8 +12,7 @@
#include "rnbd-srv-dev.h"
#include "rnbd-log.h"
-struct rnbd_dev *rnbd_dev_open(const char *path, fmode_t flags,
- struct bio_set *bs)
+struct rnbd_dev *rnbd_dev_open(const char *path, fmode_t flags)
{
struct rnbd_dev *dev;
int ret;
@@ -30,7 +29,6 @@ struct rnbd_dev *rnbd_dev_open(const char *path, fmode_t flags,
dev->blk_open_flags = flags;
bdevname(dev->bdev, dev->name);
- dev->ibd_bio_set = bs;
return dev;