Lines Matching refs:srv_sess_dev
686 struct rnbd_srv_sess_dev *srv_sess_dev; in process_msg_open() local
700 srv_sess_dev = find_srv_sess_dev(srv_sess, open_msg->dev_name); in process_msg_open()
701 if (srv_sess_dev) in process_msg_open()
743 srv_sess_dev = rnbd_srv_create_set_sess_dev(srv_sess, open_msg, in process_msg_open()
747 if (IS_ERR(srv_sess_dev)) { in process_msg_open()
749 full_path, srv_sess->sessname, srv_sess_dev); in process_msg_open()
750 ret = PTR_ERR(srv_sess_dev); in process_msg_open()
763 rnbd_srv_err(srv_sess_dev, in process_msg_open()
770 ret = rnbd_srv_create_dev_session_sysfs(srv_sess_dev); in process_msg_open()
773 rnbd_srv_err(srv_sess_dev, in process_msg_open()
779 list_add(&srv_sess_dev->dev_list, &srv_dev->sess_dev_list); in process_msg_open()
782 rnbd_srv_info(srv_sess_dev, "Opened device '%s'\n", srv_dev->name); in process_msg_open()
787 rnbd_srv_fill_msg_open_rsp(rsp, srv_sess_dev); in process_msg_open()
792 xa_erase(&srv_sess->index_idr, srv_sess_dev->device_id); in process_msg_open()
794 kfree(srv_sess_dev); in process_msg_open()