<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/infiniband/core/ucm.c, branch linux-4.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.3.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-08-30T19:48:24Z</updated>
<entry>
<title>IB/cm: Remove compare_data checks</title>
<updated>2015-08-30T19:48:24Z</updated>
<author>
<name>Haggai Eran</name>
</author>
<published>2015-07-30T14:50:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73fec7fd04a2ad6c879c93881cba9a40d551b3fd'/>
<id>urn:sha1:73fec7fd04a2ad6c879c93881cba9a40d551b3fd</id>
<content type='text'>
Now that there are no ib_cm clients using the compare_data feature for
matching IB CM requests' private data, remove the compare_data parameter of
ib_cm_listen and remove the code implementing the feature.

Signed-off-by: Haggai Eran &lt;haggaie@mellanox.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/core: lock client data with lists_rwsem</title>
<updated>2015-08-30T19:48:21Z</updated>
<author>
<name>Haggai Eran</name>
</author>
<published>2015-07-30T14:50:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c1eb45a22d76bb99236e7485958f87ef7c449cf'/>
<id>urn:sha1:7c1eb45a22d76bb99236e7485958f87ef7c449cf</id>
<content type='text'>
An ib_client callback that is called with the lists_rwsem locked only for
read is protected from changes to the IB client lists, but not from
ib_unregister_device() freeing its client data. This is because
ib_unregister_device() will remove the device from the device list with
lists_rwsem locked for write, but perform the rest of the cleanup,
including the call to remove() without that lock.

Mark client data that is undergoing de-registration with a new going_down
flag in the client data context. Lock the client data list with lists_rwsem
for write in addition to using the spinlock, so that functions calling the
callback would be able to lock only lists_rwsem for read and let callbacks
sleep.

Since ib_unregister_client() now marks the client data context, no need for
remove() to search the context again, so pass the client data directly to
remove() callbacks.

Reviewed-by: Jason Gunthorpe &lt;jgunthorpe@obsidianresearch.com&gt;
Signed-off-by: Haggai Eran &lt;haggaie@mellanox.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/ucm: Fix bitmap wrap when devnum &gt; IB_UCM_MAX_DEVICES</title>
<updated>2015-07-14T17:20:12Z</updated>
<author>
<name>Carol L Soto</name>
</author>
<published>2015-06-11T16:06:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=59d40dd92ca00df317ad44fa44c27fe38c58e477'/>
<id>urn:sha1:59d40dd92ca00df317ad44fa44c27fe38c58e477</id>
<content type='text'>
ib_ucm_release_dev clears the wrong bit if devnum is greater
than IB_UCM_MAX_DEVICES.

Signed-off-by: Carol L Soto &lt;clsoto@linux.vnet.ibm.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/Verbs: Use management helper rdma_cap_ib_cm()</title>
<updated>2015-05-18T17:35:05Z</updated>
<author>
<name>Michael Wang</name>
</author>
<published>2015-05-05T12:50:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72219cea8e246a55bff92e5ff6ec21f331a8791e'/>
<id>urn:sha1:72219cea8e246a55bff92e5ff6ec21f331a8791e</id>
<content type='text'>
Introduce helper rdma_cap_ib_cm() to help us check if the port of an
IB device support Infiniband Communication Manager.

Signed-off-by: Michael Wang &lt;yun.wang@profitbricks.com&gt;
Reviewed-by: Ira Weiny &lt;ira.weiny@intel.com&gt;
Tested-by: Ira Weiny &lt;ira.weiny@intel.com&gt;
Reviewed-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Reviewed-by: Jason Gunthorpe &lt;jgunthorpe@obsidianresearch.com&gt;
Tested-by: Doug Ledford &lt;dledford@redhat.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/Verbs: Reform cm related part in IB-core cma/ucm</title>
<updated>2015-05-18T17:35:04Z</updated>
<author>
<name>Michael Wang</name>
</author>
<published>2015-05-05T12:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21655afc627c2f93661617ed9022830cb9248034'/>
<id>urn:sha1:21655afc627c2f93661617ed9022830cb9248034</id>
<content type='text'>
Use raw management helpers to reform cm related part in IB-core cma/ucm.

Few checks focus on the device cm type rather than the port capability,
directly pass port 1 works currently, but can't support mixing cm type
device in future.

Signed-off-by: Michael Wang &lt;yun.wang@profitbricks.com&gt;
Reviewed-by: Ira Weiny &lt;ira.weiny@intel.com&gt;
Tested-by: Ira Weiny &lt;ira.weiny@intel.com&gt;
Reviewed-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Reviewed-by: Jason Gunthorpe &lt;jgunthorpe@obsidianresearch.com&gt;
Tested-by: Doug Ledford &lt;dledford@redhat.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/core: convert to idr_alloc()</title>
<updated>2013-02-28T03:10:16Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2013-02-28T01:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b069c5d857a5f1b8cb6bb74c70d9446089f5077'/>
<id>urn:sha1:3b069c5d857a5f1b8cb6bb74c70d9446089f5077</id>
<content type='text'>
Convert to the much saner new idr interface.

v2: Mike triggered WARN_ON() in idr_preload() because send_mad(),
    which may be used from non-process context, was calling
    idr_preload() unconditionally.  Preload iff @gfp_mask has
    __GFP_WAIT.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Reviewed-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Reported-by: "Marciniszyn, Mike" &lt;mike.marciniszyn@intel.com&gt;
Cc: Roland Dreier &lt;roland@kernel.org&gt;
Cc: Sean Hefty &lt;sean.hefty@intel.com&gt;
Cc: Hal Rosenstock &lt;hal.rosenstock@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>IB/core: Remove unused variables in ucm/ucma</title>
<updated>2012-10-01T03:31:46Z</updated>
<author>
<name>Dotan Barak</name>
</author>
<published>2012-08-23T14:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8c9166961437263b8dd97ff8341c3335d894740'/>
<id>urn:sha1:d8c9166961437263b8dd97ff8341c3335d894740</id>
<content type='text'>
Remove unused wait objects from ucm/ucma events flow.

Signed-off-by: Dotan Barak &lt;dotanb@dev.mellanox.co.il&gt;
Signed-off-by: Or Gerlitz &lt;ogerlitz@mellanox.com&gt;
Acked-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
</content>
</entry>
<entry>
<title>rdma/core: Fix sparse warnings</title>
<updated>2012-01-04T17:17:45Z</updated>
<author>
<name>Sean Hefty</name>
</author>
<published>2011-12-06T21:13:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c89d1bedf8b130d5b20f56a484989a19a2c2842a'/>
<id>urn:sha1:c89d1bedf8b130d5b20f56a484989a19a2c2842a</id>
<content type='text'>
Clean up sparse warnings in the rdma core layer.

Signed-off-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
</content>
</entry>
<entry>
<title>RDMA/ucm: Removed checks for unsigned value &lt; 0</title>
<updated>2011-10-06T16:33:05Z</updated>
<author>
<name>Hefty, Sean</name>
</author>
<published>2011-10-06T16:33:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=caf6e3f221ddc12ccabd1cd0ba149561db0090d4'/>
<id>urn:sha1:caf6e3f221ddc12ccabd1cd0ba149561db0090d4</id>
<content type='text'>
cmd is unsigned, no need to check for &lt; 0.  Found by code inspection.

Signed-off-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
</content>
</entry>
<entry>
<title>IB/ucm: Use memdup_user()</title>
<updated>2010-05-26T04:10:57Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2010-05-22T08:21:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e642df6a0be93316c0a886766057c4cc510c123d'/>
<id>urn:sha1:e642df6a0be93316c0a886766057c4cc510c123d</id>
<content type='text'>
Use memdup_user when user data is immediately copied into the
allocated region.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
expression from,to,size,flag;
position p;
identifier l1,l2;
@@

-  to = \(kmalloc@p\|kzalloc@p\)(size,flag);
+  to = memdup_user(from,size);
   if (
-      to==NULL
+      IS_ERR(to)
                 || ...) {
   &lt;+... when != goto l1;
-  -ENOMEM
+  PTR_ERR(to)
   ...+&gt;
   }
-  if (copy_from_user(to, from, size) != 0) {
-    &lt;+... when != goto l2;
-    -EFAULT
-    ...+&gt;
-  }
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
</content>
</entry>
</feed>
