~ubuntu-branches/ubuntu/karmic/linux-ports/karmic

« back to all changes in this revision

Viewing changes to fs/ocfs2/cluster/tcp.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich, Luke Yelavich, Michael Casadevall, Tim Gardner, Upstream Kernel Changes
  • Date: 2009-05-06 18:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090506181855-t00baeevpnvd9o7a
Tags: 2.6.30-1.1
[ Luke Yelavich ]
* initial release for karmic
* SAUCE: rebase-ports - adjust for the karmic ports kernel
* SAUCE: rebase-ports - also remove abi dirs/files on rebase
* Update configs after rebase against mainline Jaunty tree
* [Config] Disable CONFIG_BLK_DEV_UB and CONFIG_USB_LIBUSUAL as per
  mainline jaunty
* forward-port patch to drbd for powerpc compilation
* [Config] disable CONFIG_LENOVO_SL_LAPTOP for i386 due to FTBFS
* add .o files found in arch/powerpc/lib to all powerpc kernel header
  packages
* [Config] enable CONFIG_DRM_I915_KMS for i386 as per karmic mainline

[ Michael Casadevall ]

* Disable kgdb on sparc64
* [sparc] [Config] Disable GPIO LEDS
* [ia64] Rename -ia64-generic to -ia64 in line with other architectures
* Correct kernel image path for sparc builds
* [hppa] Fix HPPA config files to build modules for all udebian

Rebase on top of karmic mainline 2.6.30-1.1

[ Tim Gardner ]

* [Config] armel: disable staging drivers, fixes FTBS
* [Config] armel imx51: Disable CONFIG_MTD_NAND_MXC, fixes FTBS

[ Upstream Kernel Changes ]

* mpt2sas: Change reset_type enum to avoid namespace collision.
  Submitted upstream.

* Initial release after rebasing against v2.6.30-rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1597
1597
        ret = sock->ops->bind(sock, (struct sockaddr *)&myaddr,
1598
1598
                              sizeof(myaddr));
1599
1599
        if (ret) {
1600
 
                mlog(ML_ERROR, "bind failed with %d at address %u.%u.%u.%u\n",
1601
 
                     ret, NIPQUAD(mynode->nd_ipv4_address));
 
1600
                mlog(ML_ERROR, "bind failed with %d at address %pI4\n",
 
1601
                     ret, &mynode->nd_ipv4_address);
1602
1602
                goto out;
1603
1603
        }
1604
1604
 
1790
1790
 
1791
1791
        node = o2nm_get_node_by_ip(sin.sin_addr.s_addr);
1792
1792
        if (node == NULL) {
1793
 
                mlog(ML_NOTICE, "attempt to connect from unknown node at "
1794
 
                     "%u.%u.%u.%u:%d\n", NIPQUAD(sin.sin_addr.s_addr),
1795
 
                     ntohs(sin.sin_port));
 
1793
                mlog(ML_NOTICE, "attempt to connect from unknown node at %pI4:%d\n",
 
1794
                     &sin.sin_addr.s_addr, ntohs(sin.sin_port));
1796
1795
                ret = -EINVAL;
1797
1796
                goto out;
1798
1797
        }
1799
1798
 
1800
1799
        if (o2nm_this_node() > node->nd_num) {
1801
1800
                mlog(ML_NOTICE, "unexpected connect attempted from a lower "
1802
 
                     "numbered node '%s' at " "%u.%u.%u.%u:%d with num %u\n",
1803
 
                     node->nd_name, NIPQUAD(sin.sin_addr.s_addr),
 
1801
                     "numbered node '%s' at " "%pI4:%d with num %u\n",
 
1802
                     node->nd_name, &sin.sin_addr.s_addr,
1804
1803
                     ntohs(sin.sin_port), node->nd_num);
1805
1804
                ret = -EINVAL;
1806
1805
                goto out;
1810
1809
         * and tries to connect before we see their heartbeat */
1811
1810
        if (!o2hb_check_node_heartbeating_from_callback(node->nd_num)) {
1812
1811
                mlog(ML_CONN, "attempt to connect from node '%s' at "
1813
 
                     "%u.%u.%u.%u:%d but it isn't heartbeating\n",
1814
 
                     node->nd_name, NIPQUAD(sin.sin_addr.s_addr),
 
1812
                     "%pI4:%d but it isn't heartbeating\n",
 
1813
                     node->nd_name, &sin.sin_addr.s_addr,
1815
1814
                     ntohs(sin.sin_port));
1816
1815
                ret = -EINVAL;
1817
1816
                goto out;
1827
1826
        spin_unlock(&nn->nn_lock);
1828
1827
        if (ret) {
1829
1828
                mlog(ML_NOTICE, "attempt to connect from node '%s' at "
1830
 
                     "%u.%u.%u.%u:%d but it already has an open connection\n",
1831
 
                     node->nd_name, NIPQUAD(sin.sin_addr.s_addr),
 
1829
                     "%pI4:%d but it already has an open connection\n",
 
1830
                     node->nd_name, &sin.sin_addr.s_addr,
1832
1831
                     ntohs(sin.sin_port));
1833
1832
                goto out;
1834
1833
        }
1924
1923
        sock->sk->sk_reuse = 1;
1925
1924
        ret = sock->ops->bind(sock, (struct sockaddr *)&sin, sizeof(sin));
1926
1925
        if (ret < 0) {
1927
 
                mlog(ML_ERROR, "unable to bind socket at %u.%u.%u.%u:%u, "
1928
 
                     "ret=%d\n", NIPQUAD(addr), ntohs(port), ret);
 
1926
                mlog(ML_ERROR, "unable to bind socket at %pI4:%u, "
 
1927
                     "ret=%d\n", &addr, ntohs(port), ret);
1929
1928
                goto out;
1930
1929
        }
1931
1930
 
1932
1931
        ret = sock->ops->listen(sock, 64);
1933
1932
        if (ret < 0) {
1934
 
                mlog(ML_ERROR, "unable to listen on %u.%u.%u.%u:%u, ret=%d\n",
1935
 
                     NIPQUAD(addr), ntohs(port), ret);
 
1933
                mlog(ML_ERROR, "unable to listen on %pI4:%u, ret=%d\n",
 
1934
                     &addr, ntohs(port), ret);
1936
1935
        }
1937
1936
 
1938
1937
out: