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)
commit9b6e27d01adcec58e046c624874f8a124e8b07ec
tree6cedb5969e6920bf161cb142b44fe6164d6a18fc
parente4e737bb5c170df6135a127739a9e6148ee3da82
nfsd: don't alloc under spinlock in rpc_parse_scope_id

Dan Carpenter says:

  The patch d20c11d86d8f: "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: d20c11d86d8f ("nfsd: Protect session creation and client...")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/addr.c