Searched refs:srv_dev (Results 1 – 1 of 1) sorted by relevance
472 static int rnbd_srv_check_update_open_perm(struct rnbd_srv_dev *srv_dev, in rnbd_srv_check_update_open_perm() argument478 mutex_lock(&srv_dev->lock); in rnbd_srv_check_update_open_perm()484 if (srv_dev->open_write_cnt == 0) { in rnbd_srv_check_update_open_perm()485 srv_dev->open_write_cnt++; in rnbd_srv_check_update_open_perm()488 srv_dev->name, srv_sess->sessname, in rnbd_srv_check_update_open_perm()489 srv_dev->open_write_cnt, in rnbd_srv_check_update_open_perm()495 if (srv_dev->open_write_cnt < 2) { in rnbd_srv_check_update_open_perm()496 srv_dev->open_write_cnt++; in rnbd_srv_check_update_open_perm()499 srv_dev->name, srv_sess->sessname, in rnbd_srv_check_update_open_perm()500 srv_dev->open_write_cnt, in rnbd_srv_check_update_open_perm()[all …]