RDMA/ocrdma: Fix a crash in rmmod
authorNaresh Gottumukkala <bgottumukkala@emulex.com>
Fri, 6 Sep 2013 09:32:47 +0000 (15:02 +0530)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:06 +0000 (14:43 -0800)
commit1852d1da3b4723d7db0d490f54c07442b3e1c452
tree431dbd1132b59578a8ea153ffb863fb22f30b3a9
parent6ebacdfc07ca61ba258693c9b4c88f1ffbe8ccd7
RDMA/ocrdma: Fix a crash in rmmod

1) ocrdma_remove_free() is called from a call_rcu callback funtion
   context, which can be a bottom-half context. So the code in
   ocrdma_remove_free should not sleep.

   But ocrdma_cleanup_hw() can sleep, So move it ocrdma_remove()
   instead of ocrdma_remove_free.

2) Fix a couple of kbuild test robot warnings.

Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma.h
drivers/infiniband/hw/ocrdma/ocrdma_main.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c