diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_cq.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_cq.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_cq.c b/drivers/infiniband/hw/mthca/mthca_cq.c index 16a851b341f8..78d9cc119f33 100644 --- a/drivers/infiniband/hw/mthca/mthca_cq.c +++ b/drivers/infiniband/hw/mthca/mthca_cq.c | |||
@@ -696,8 +696,6 @@ int mthca_init_cq(struct mthca_dev *dev, int nent, | |||
696 | u8 status; | 696 | u8 status; |
697 | int i; | 697 | int i; |
698 | 698 | ||
699 | might_sleep(); | ||
700 | |||
701 | cq->ibcq.cqe = nent - 1; | 699 | cq->ibcq.cqe = nent - 1; |
702 | cq->is_kernel = !ctx; | 700 | cq->is_kernel = !ctx; |
703 | 701 | ||
@@ -827,8 +825,6 @@ void mthca_free_cq(struct mthca_dev *dev, | |||
827 | int err; | 825 | int err; |
828 | u8 status; | 826 | u8 status; |
829 | 827 | ||
830 | might_sleep(); | ||
831 | |||
832 | mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); | 828 | mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); |
833 | if (IS_ERR(mailbox)) { | 829 | if (IS_ERR(mailbox)) { |
834 | mthca_warn(dev, "No memory for mailbox to free CQ.\n"); | 830 | mthca_warn(dev, "No memory for mailbox to free CQ.\n"); |