Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21917
b: refs/heads/master
c: 399d792
h: refs/heads/master
i:
  21915: d2c0363
v: v3
  • Loading branch information
Roland Dreier committed Mar 20, 2006
1 parent 32f5307 commit 737a03a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9b98b0f11ee7dd39429001ba289f095b9d66917
refs/heads/master: 399d7921299fc4f146bd62bfa6312382a5429bcc
4 changes: 0 additions & 4 deletions trunk/drivers/infiniband/hw/mthca/mthca_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,6 @@ int mthca_init_cq(struct mthca_dev *dev, int nent,
u8 status;
int i;

might_sleep();

cq->ibcq.cqe = nent - 1;
cq->is_kernel = !ctx;

Expand Down Expand Up @@ -827,8 +825,6 @@ void mthca_free_cq(struct mthca_dev *dev,
int err;
u8 status;

might_sleep();

mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL);
if (IS_ERR(mailbox)) {
mthca_warn(dev, "No memory for mailbox to free CQ.\n");
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/infiniband/hw/mthca/mthca_mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift,
int err;
u8 status;

might_sleep();

WARN_ON(buffer_size_shift >= 32);

key = mthca_alloc(&dev->mr_table.mpt_alloc);
Expand Down Expand Up @@ -467,8 +465,6 @@ void mthca_free_mr(struct mthca_dev *dev, struct mthca_mr *mr)
int err;
u8 status;

might_sleep();

err = mthca_HW2SW_MPT(dev, NULL,
key_to_hw_index(dev, mr->ibmr.lkey) &
(dev->limits.num_mpts - 1),
Expand All @@ -495,8 +491,6 @@ int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd,
int err = -ENOMEM;
int i;

might_sleep();

if (mr->attr.page_size < 12 || mr->attr.page_size >= 32)
return -EINVAL;

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/infiniband/hw/mthca/mthca_pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd)
{
int err = 0;

might_sleep();

pd->privileged = privileged;

atomic_set(&pd->sqp_count, 0);
Expand All @@ -66,7 +64,6 @@ int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd)

void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd)
{
might_sleep();
if (pd->privileged)
mthca_free_mr(dev, &pd->ntmr);
mthca_free(&dev->pd_table.alloc, pd->pd_num);
Expand Down

0 comments on commit 737a03a

Please sign in to comment.