Lines Matching refs:srv_sess_dev
678 struct rnbd_srv_sess_dev *srv_sess_dev; in process_msg_open() local
692 srv_sess_dev = find_srv_sess_dev(srv_sess, open_msg->dev_name); in process_msg_open()
693 if (srv_sess_dev) in process_msg_open()
735 srv_sess_dev = rnbd_srv_create_set_sess_dev(srv_sess, open_msg, bdev, in process_msg_open()
738 if (IS_ERR(srv_sess_dev)) { in process_msg_open()
740 full_path, srv_sess->sessname, PTR_ERR(srv_sess_dev)); in process_msg_open()
741 ret = PTR_ERR(srv_sess_dev); in process_msg_open()
754 rnbd_srv_err(srv_sess_dev, in process_msg_open()
761 ret = rnbd_srv_create_dev_session_sysfs(srv_sess_dev); in process_msg_open()
764 rnbd_srv_err(srv_sess_dev, in process_msg_open()
770 list_add(&srv_sess_dev->dev_list, &srv_dev->sess_dev_list); in process_msg_open()
773 rnbd_srv_info(srv_sess_dev, "Opened device '%s'\n", srv_dev->name); in process_msg_open()
778 rnbd_srv_fill_msg_open_rsp(rsp, srv_sess_dev); in process_msg_open()
783 xa_erase(&srv_sess->index_idr, srv_sess_dev->device_id); in process_msg_open()
785 kfree(srv_sess_dev); in process_msg_open()