[PATCH] rxrpc: fix bad unlock balance in rxrpc_do_sendmsg

Khalid Masum khalid.masum.92 at gmail.com
Mon Aug 22 09:00:37 PDT 2022



On August 22, 2022 9:39:43 PM GMT+06:00, Hawkins Jiawei <yin31149 at gmail.com> wrote:
>On Mon, 22 Aug 2022 at 22:06, Dan Carpenter <dan.carpenter at oracle.com> wrote:

>I trid this before, it doesn't work as Dan points out. I think
>it seems that mutex_is_locked() only checks whether there is a task

I see.
>holding the mutex, but do not check whether it is current task holding
>mutex. I also tried lockdep_is_held(), lockdep_is_held() seems can detect

Ok.
>call->user_mutex is still held accurately, although this cannot be the patch.

Useful to know! Thanks for the information.

  -- Khalid Masum 




More information about the linux-afs mailing list