Searched refs:srv_dev (Results 1 – 1 of 1) sorted by relevance
465 static int rnbd_srv_check_update_open_perm(struct rnbd_srv_dev *srv_dev, in rnbd_srv_check_update_open_perm() argument471 mutex_lock(&srv_dev->lock); in rnbd_srv_check_update_open_perm()477 if (srv_dev->open_write_cnt == 0) { in rnbd_srv_check_update_open_perm()478 srv_dev->open_write_cnt++; in rnbd_srv_check_update_open_perm()481 srv_dev->name, srv_sess->sessname, in rnbd_srv_check_update_open_perm()482 srv_dev->open_write_cnt, in rnbd_srv_check_update_open_perm()488 if (srv_dev->open_write_cnt < 2) { in rnbd_srv_check_update_open_perm()489 srv_dev->open_write_cnt++; in rnbd_srv_check_update_open_perm()492 srv_dev->name, srv_sess->sessname, in rnbd_srv_check_update_open_perm()493 srv_dev->open_write_cnt, in rnbd_srv_check_update_open_perm()[all …]