Lines Matching refs:owner

17  * information: Portions Copyright [yyyy] [name of copyright owner]
1585 * Called to obtain the current owner of a mirror.
1607 p->d.owner = un->un_mirror_owner;
1691 * mirror owner.
1696 /* Sets node owner of un_rr_dirty record */
1731 * Called to change the owner of a mirror to the specified node. If we
1732 * are not the owner of the mirror, we do nothing apart from update the in-core
1733 * ownership. It can also be used to choose a new owner for the resync of a
1742 * kernel thread which updates the owner info on the originating
1744 * that the owner field can be changed.
1748 * been processed. The only way of changing the owner away from
1749 * the p->d.owner node specified in the call is to issue a request
1751 * become owner from a different node while the PREVENT_CHANGE
1756 * Allow the owner to be changed by a subsequent request.
1760 * Choose a new owner for a mirror resync. In this case, the new
1761 * owner argument is not used. The selection of a new owner
1762 * is a round robin allocation using a resync owner count. This
1765 * sends it a message to become the owner.
1767 * If we are the current owner, we must stop further i/o from being scheduled
1769 * bitmap updates to complete and we can then set the owner. If an update to
1773 * If we are the node that wants to become the owner we update the in-core
1774 * owner and return. The i/o that initiated the ownership change will complete
1799 * If we are choosing a new resync owner, send a message to the master
1805 /* If we're resetting the owner pass the node id in */
1806 if (p->d.owner != MD_MN_MIRROR_UNOWNED) {
1820 * If we are just clearing the owner, then MD_MN_MM_SPAWN_THREAD can
1823 if ((p->d.flags & MD_MN_MM_SPAWN_THREAD) && (p->d.owner != 0)) {
1838 * If setting owner to NULL, this is being done because the owner has
1845 if (p->d.owner == 0) {
1888 * If we are not trying to become owner ourselves check
1889 * to see if we have to change the owner
1891 if (un->un_mirror_owner == p->d.owner) {
1893 * No need to change owner,
1916 "owner while node %x has exclusive access to %s",
1917 p->d.owner, un->un_mirror_owner, md_shortname(MD_SID(un)));
1921 if (p->d.owner == md_mn_mynode_id) {
1923 * I'm becoming the mirror owner. Flag this so that the
1924 * message sender can change the in-core owner when all
1950 un->un_mirror_owner = p->d.owner;
1952 /* Sets node owner of un_rr_dirty record */
1954 (void) mddb_setowner(un->un_rr_dirty_recid, p->d.owner);
1967 /* Update the in-core mirror owner */
1968 un->un_mirror_owner = p->d.owner;
1969 /* Sets node owner of un_rr_dirty record */
1971 (void) mddb_setowner(un->un_rr_dirty_recid, p->d.owner);
2016 * required for soft-partition support as the request to change mirror owner
2228 /* Clear DRL and set owner to 0 if no resync active */
2249 * Called to choose an owner for a mirror resync. Can be called when starting
2252 * reconfig and we wish to set a new owner for a resync whose owner has left
2253 * the cluster. We use a resync owner count to implement a round robin
2255 * this count and the message handler uses it to select an owner from the
2257 * become the owner.
2261 * ownp - owner information (if non-NULL)
2278 printf("send choose owner message, mnum = %x,"
2285 * owner then we are reestablishing the owner of the mirror. In this
2287 * the new owner node.
2298 msg->msg_chooseid_rcnt = ownp->owner;