summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2020-11-26 11:47:17 +0100
committerJens Axboe <axboe@kernel.dk>2020-12-04 09:41:10 -0700
commit91f4acb2801ce4985483b0fa174bbe995d105417 (patch)
tree5bd92aad5ca2b768122ce7ff686124fee46b1da2 /Documentation/ABI
parentce9fe18abb7c86a71b545e1cdd60fe333bf462a3 (diff)
downloadlinux-stable-91f4acb2801ce4985483b0fa174bbe995d105417.tar.gz
linux-stable-91f4acb2801ce4985483b0fa174bbe995d105417.tar.bz2
linux-stable-91f4acb2801ce4985483b0fa174bbe995d105417.zip
block/rnbd-clt: support mapping two devices with the same name from different servers
Previously, we can't map same device name from different sessions due to the limitation of sysfs naming mechanism. root@clt2:~# ls -l /sys/class/rnbd-client/ctl/devices/ total 0 lrwxrwxrwx 1 root 0 Sep 2 16:31 !dev!nullb1 -> ../../../block/rnbd0 We only use the device name in above, which caused device with the same name can't be mapped from another server. To address the issue, the sessname is appended to the node to differentiate where the device comes from. Also, we need to check if the pathname is existed in a specific session instead of search it in global sess_list. Signed-off-by: Guoqing Jiang <guoqing.jiang@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: Md Haris Iqbal <haris.iqbal@cloud.ionos.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions