summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_provider.h
diff options
context:
space:
mode:
authorOlaf Kirch <okir@lst.de>2008-04-29 13:46:53 -0700
committerRoland Dreier <rolandd@cisco.com>2008-04-29 13:46:53 -0700
commit0bfe151cc4049f3f304adf28b37ea5437d02ad96 (patch)
tree4e67ca79ec441896bd9cfde98268eb287987989e /drivers/infiniband/hw/mthca/mthca_provider.h
parentbbdc2821db041fb07ffa52e4a0e1ebb5410790e9 (diff)
downloadblackbird-op-linux-0bfe151cc4049f3f304adf28b37ea5437d02ad96.tar.gz
blackbird-op-linux-0bfe151cc4049f3f304adf28b37ea5437d02ad96.zip
IB/mthca: Avoid recycling old FMR R_Keys too soon
When a FMR is unmapped, mthca resets the map count to 0, and clears the upper part of the R_Key which is used as the sequence counter. This poses a problem for RDS, which uses ib_fmr_unmap as a fence operation. RDS assumes that after issuing an unmap, the old R_Keys will be invalid for a "reasonable" period of time. For instance, Oracle processes uses shared memory buffers allocated from a pool of buffers. When a process dies, we want to reclaim these buffers -- but we must make sure there are no pending RDMA operations to/from those buffers. The only way to achieve that is by using unmap and sync the TPT. However, when the sequence count is reset on unmap, there is a high likelihood that a new mapping will be given the same R_Key that was issued a few milliseconds ago. To prevent this, don't reset the sequence count when unmapping a FMR. Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud