diff options
author | Guoqing Jiang <guoqing.jiang@gmx.com> | 2021-04-19 09:37:08 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-20 16:59:04 +0200 |
commit | d0a70ab10b9cbd4a9e272f4eebe2c07e2e5943cb (patch) | |
tree | 639b6a3fb3edf255f637401b47a3ec254ed36d04 /drivers/block/rnbd/rnbd-srv.c | |
parent | block/rnbd-clt: Remove some arguments from rnbd_client_setup_device (diff) | |
download | linux-d0a70ab10b9cbd4a9e272f4eebe2c07e2e5943cb.tar.xz linux-d0a70ab10b9cbd4a9e272f4eebe2c07e2e5943cb.zip |
block/rnbd-clt: Move add_disk(dev->gd) to rnbd_clt_setup_gen_disk
It makes more sense to add gendisk in rnbd_clt_setup_gen_disk, instead
of do it in rnbd_clt_map_device.
Signed-off-by: Guoqing Jiang <guoqing.jiang@gmx.com>
Reviewed-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@cloud.ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210419073722.15351-6-gi-oh.kim@ionos.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rnbd/rnbd-srv.c')
0 files changed, 0 insertions, 0 deletions