Changeset 89204a23 in mainline


Ignore:
Timestamp:
2015-11-02T19:15:12Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3feeab2
Parents:
9624c35
Message:

Partition service registration could be quicker than the call to loc_server_register(), causing locsrv communicatons break down.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/vbd/vbd.c

    r9624c35 r89204a23  
    6464                return rc;
    6565
     66        async_set_client_connection(vbds_client_conn);
     67
     68        rc = loc_server_register(NAME);
     69        if (rc != EOK) {
     70                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc);
     71                return EEXIST;
     72        }
     73
     74        rc = loc_service_register(SERVICE_NAME_VBD, &ctl_sid);
     75        if (rc != EOK) {
     76                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
     77                return EEXIST;
     78        }
     79
    6680        rc = vbds_disk_discovery_start();
    6781        if (rc != EOK)
    6882                return rc;
    69 
    70         async_set_client_connection(vbds_client_conn);
    71 
    72         rc = loc_server_register(NAME);
    73         if (rc != EOK) {
    74                 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc);
    75                 return EEXIST;
    76         }
    77 
    78         rc = loc_service_register(SERVICE_NAME_VBD, &ctl_sid);
    79         if (rc != EOK) {
    80                 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
    81                 return EEXIST;
    82         }
    8383
    8484        return EOK;
Note: See TracChangeset for help on using the changeset viewer.