1. 24 Feb, 2010 2 commits
    • Alexander Chiang's avatar
      IB/uverbs: Remove dev_table · 2a72f212
      Alexander Chiang authored
      dev_table's raison d'etre was to associate an inode back to a struct
      ib_uverbs_device.
      
      However, now that we've converted ib_uverbs_device to contain an
      embedded cdev (instead of a *cdev), we can use the container_of()
      macro and cast back to the containing device.
      
      There's no longer any need for dev_table, so get rid of it.
      Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      2a72f212
    • Alexander Chiang's avatar
      IB/uverbs: Convert *cdev to cdev in struct ib_uverbs_device · 055422dd
      Alexander Chiang authored
      Instead of storing a pointer to a cdev, embed the entire struct cdev.
      
      This change allows us to use the container_of() macro in
      ib_uverbs_open() in a future patch.
      
      This change increases the size of struct ib_uverbs_device to 168 bytes
      across 3 cachelines from 80 bytes in 2 cachelines.  However, we
      rearrange the members so that everything fits into the first cacheline
      except for the struct cdev. Finally, we don't touch the cdev in any
      fastpaths, so this change shouldn't negatively affect performance.
      Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      055422dd
  2. 11 Feb, 2010 31 commits
  3. 10 Feb, 2010 7 commits