mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
RDMA/cxgb3: Annotate locking assumptions
Tell sparse what the locking assumptions are for __flush_qp() such that it does not complain about the locking operations inside that function. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
6dfa8ae6b4
commit
1f5461b202
1 changed files with 3 additions and 0 deletions
|
|
@ -722,10 +722,13 @@ int iwch_post_terminate(struct iwch_qp *qhp, struct respQ_msg_t *rsp_msg)
|
|||
*/
|
||||
static void __flush_qp(struct iwch_qp *qhp, struct iwch_cq *rchp,
|
||||
struct iwch_cq *schp)
|
||||
__releases(&qhp->lock)
|
||||
__acquires(&qhp->lock)
|
||||
{
|
||||
int count;
|
||||
int flushed;
|
||||
|
||||
lockdep_assert_held(&qhp->lock);
|
||||
|
||||
pr_debug("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp);
|
||||
/* take a ref on the qhp since we must release the lock */
|
||||
|
|
|
|||
Loading…
Reference in a new issue