linux/drivers/infiniband/hw/mthca
Roland Dreier 399d792129 IB/mthca: Get rid of might_sleep() annotations
The might_sleep() annotations in mthca are silly -- they all occur
shortly before calls that will end up in core functions like kmalloc()
that will print the same warning in an unsafe context anyway.  In
fact, beyond cluttering the source, we're actually bloating text with
CONFIG_DEBUG_SPINLOCK_SLEEP and/or CONFIG_PREEMPT_VOLUNTARY set.

With both options set, getting rid of the might_sleep()s saves a lot:
add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-171 (-171)
function                                     old     new   delta
mthca_pd_alloc                               132     109     -23
mthca_init_cq                                969     946     -23
mthca_mr_alloc                               592     568     -24
mthca_pd_free                                 67      42     -25
mthca_free_mr                                219     194     -25
mthca_free_cq                                570     545     -25
mthca_fmr_alloc                              742     716     -26

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2006-03-20 10:08:07 -08:00
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [IB] mthca: first pass at catastrophic error reporting 2005-10-27 11:03:38 -07:00
mthca_allocator.c [PATCH] IB/mthca: Factor out common queue alloc code 2005-08-26 20:37:37 -07:00
mthca_av.c IB/mthca: Use correct GID in MADs sent on port 2 2006-01-21 14:02:59 -08:00
mthca_catas.c Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband 2005-11-10 13:27:06 -08:00
mthca_cmd.c IB/mthca: Don't print debugging info until we have all values 2006-02-10 18:02:44 -08:00
mthca_cmd.h [PATCH] gfp_t: drivers/infiniband 2005-10-28 08:16:50 -07:00
mthca_config_reg.h [PATCH] IB: Add copyright notices 2005-08-26 20:37:35 -07:00
mthca_cq.c IB/mthca: Get rid of might_sleep() annotations 2006-03-20 10:08:07 -08:00
mthca_dev.h IB/mthca: Make functions that never fail return void 2006-03-20 10:08:07 -08:00
mthca_doorbell.h [PATCH] IB: sparse endianness cleanup 2005-08-26 20:37:35 -07:00
mthca_eq.c IB/mthca: prevent event queue overrun 2006-01-09 14:04:40 -08:00
mthca_mad.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
mthca_main.c IB/mthca: Relax UAR size check 2006-01-30 15:20:35 -08:00
mthca_mcg.c IB/mthca: Semaphore to mutex conversions 2006-01-30 16:45:11 -08:00
mthca_memfree.c IB/mthca: Semaphore to mutex conversions 2006-01-30 16:45:11 -08:00
mthca_memfree.h IB/mthca: Semaphore to mutex conversions 2006-01-30 16:45:11 -08:00
mthca_mr.c IB/mthca: Get rid of might_sleep() annotations 2006-03-20 10:08:07 -08:00
mthca_pd.c IB/mthca: Get rid of might_sleep() annotations 2006-03-20 10:08:07 -08:00
mthca_profile.c Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband 2005-11-04 16:31:54 -08:00
mthca_profile.h [PATCH] IB/mthca: Add SRQ implementation 2005-08-26 20:37:37 -07:00
mthca_provider.c IB/mthca: Semaphore to mutex conversions 2006-01-30 16:45:11 -08:00
mthca_provider.h [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
mthca_qp.c IB/mthca: Make functions that never fail return void 2006-03-20 10:08:07 -08:00
mthca_reset.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
mthca_srq.c IB/mthca: fix WQE size calculation in create-srq 2006-01-04 14:42:39 -08:00
mthca_uar.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
mthca_user.h [IB] uverbs: Add device-specific ABI version attribute 2005-10-17 15:20:26 -07:00
mthca_wqe.h IB/mthca: fix posting of send lists of length >= 255 on mem-free HCAs 2005-11-29 11:33:46 -08:00