diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_mr.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_mr.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_mr.c b/drivers/infiniband/hw/mthca/mthca_mr.c index e995e2aa016d..551320fdc9c5 100644 --- a/drivers/infiniband/hw/mthca/mthca_mr.c +++ b/drivers/infiniband/hw/mthca/mthca_mr.c | |||
@@ -340,8 +340,6 @@ int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift, | |||
340 | int err; | 340 | int err; |
341 | u8 status; | 341 | u8 status; |
342 | 342 | ||
343 | might_sleep(); | ||
344 | |||
345 | WARN_ON(buffer_size_shift >= 32); | 343 | WARN_ON(buffer_size_shift >= 32); |
346 | 344 | ||
347 | key = mthca_alloc(&dev->mr_table.mpt_alloc); | 345 | key = mthca_alloc(&dev->mr_table.mpt_alloc); |
@@ -467,8 +465,6 @@ void mthca_free_mr(struct mthca_dev *dev, struct mthca_mr *mr) | |||
467 | int err; | 465 | int err; |
468 | u8 status; | 466 | u8 status; |
469 | 467 | ||
470 | might_sleep(); | ||
471 | |||
472 | err = mthca_HW2SW_MPT(dev, NULL, | 468 | err = mthca_HW2SW_MPT(dev, NULL, |
473 | key_to_hw_index(dev, mr->ibmr.lkey) & | 469 | key_to_hw_index(dev, mr->ibmr.lkey) & |
474 | (dev->limits.num_mpts - 1), | 470 | (dev->limits.num_mpts - 1), |
@@ -495,8 +491,6 @@ int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd, | |||
495 | int err = -ENOMEM; | 491 | int err = -ENOMEM; |
496 | int i; | 492 | int i; |
497 | 493 | ||
498 | might_sleep(); | ||
499 | |||
500 | if (mr->attr.page_size < 12 || mr->attr.page_size >= 32) | 494 | if (mr->attr.page_size < 12 || mr->attr.page_size >= 32) |
501 | return -EINVAL; | 495 | return -EINVAL; |
502 | 496 | ||