]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: don't alloc under spinlock in rpc_parse_scope_id
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 14 Sep 2021 16:30:32 +0000 (12:30 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 21 Sep 2021 21:51:47 +0000 (17:51 -0400)
commitb24b24bdb125ebd75978ffc761172d13149ed7cd
tree6cedb5969e6920bf161cb142b44fe6164d6a18fc
parent77c55e5e0599360cc5f212ae9b228ab6c429f652
nfsd: don't alloc under spinlock in rpc_parse_scope_id

Dan Carpenter says:

  The patch bd307228870e: "nfsd: Protect session creation and client
  confirm using client_lock" from Jul 30, 2014, leads to the following
  Smatch static checker warning:

        net/sunrpc/addr.c:178 rpc_parse_scope_id()
        warn: sleeping in atomic context

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: bd307228870e ("nfsd: Protect session creation and client...")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/addr.c