V2 changes: 1. two patches are dropped 2. collect tags from Jack 3. replace "int mode" with "enum rnbd_access_mode" in the 3rd one Hi, This series mostly do cleanup and other trival things, pls review. Thanks, Guoqing Guoqing Jiang (8): block/rnbd: kill rnbd_flags_supported block/rnbd-srv: remove unused header block/rnbd: introduce rnbd_access_modes block/rnbd-srv: no need to check sess_dev block/rnbd-srv: rename one member in rnbd_srv_dev block/rnbd-srv: init ret with 0 instead of -EPERM block/rnbd-srv: init err earlier in rnbd_srv_init_module block/rnbd-srv: make process_msg_sess_info returns void drivers/block/rnbd/Makefile | 6 ++-- drivers/block/rnbd/rnbd-clt-sysfs.c | 4 +-- drivers/block/rnbd/rnbd-common.c | 23 --------------- drivers/block/rnbd/rnbd-proto.h | 31 ++++++-------------- drivers/block/rnbd/rnbd-srv-sysfs.c | 3 +- drivers/block/rnbd/rnbd-srv.c | 44 +++++++++++++---------------- drivers/block/rnbd/rnbd-srv.h | 2 +- 7 files changed, 34 insertions(+), 79 deletions(-) delete mode 100644 drivers/block/rnbd/rnbd-common.c -- 2.35.3