diff options
author | Jack Wang <jinpu.wang@cloud.ionos.com> | 2020-10-13 12:30:49 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-13 23:05:05 +0200 |
commit | 050b654b2a70a978873bd5885a615c6a47c6205a (patch) | |
tree | 7a02c8c89986153fa3a4c2737014fe7ccc36582c | |
parent | block/rnbd-clt: remove nr argument from send_usr_msg (diff) | |
download | linux-050b654b2a70a978873bd5885a615c6a47c6205a.tar.xz linux-050b654b2a70a978873bd5885a615c6a47c6205a.zip |
block/rnbd-clt: do not cap max_hw_sectors & max_segments with remote device
The max_hw_secotrs is only limited by the transport, not remote device,
block layer on server side will split to the device limit if it's too
big.
The max_segments, similar, and rtrs server will submit single buffer, so
no need to cap.
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/block/rnbd/rnbd-clt.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/block/rnbd/rnbd-clt.c b/drivers/block/rnbd/rnbd-clt.c index de73a14f3580..519c7d003bf0 100644 --- a/drivers/block/rnbd/rnbd-clt.c +++ b/drivers/block/rnbd/rnbd-clt.c @@ -91,11 +91,6 @@ static int rnbd_clt_set_dev_attr(struct rnbd_clt_dev *dev, dev->max_hw_sectors = sess->max_io_size / SECTOR_SIZE; dev->max_segments = BMAX_SEGMENTS; - dev->max_hw_sectors = min_t(u32, dev->max_hw_sectors, - le32_to_cpu(rsp->max_hw_sectors)); - dev->max_segments = min_t(u16, dev->max_segments, - le16_to_cpu(rsp->max_segments)); - return 0; } |