sock: tigthen lockdep checks for sock_owned_by_user
sock_owned_by_user should not be used without socket lock held. It seems to be a common practice to check .owned before lock reclassification, so provide a little help to abstract this check away. Cc: linux-cifs@vger.kernel.org Cc: linux-bluetooth@vger.kernel.org Cc: linux-nfs@vger.kernel.org Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
18b46810eb
commit
fafc4e1ea1
@@ -195,7 +195,7 @@ static int llc_seq_core_show(struct seq_file *seq, void *v)
|
||||
timer_pending(&llc->pf_cycle_timer.timer),
|
||||
timer_pending(&llc->rej_sent_timer.timer),
|
||||
timer_pending(&llc->busy_state_timer.timer),
|
||||
!!sk->sk_backlog.tail, !!sock_owned_by_user(sk));
|
||||
!!sk->sk_backlog.tail, !!sk->sk_lock.owned);
|
||||
out:
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user