]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: move fsnotify on client creation outside spinlock
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 25 May 2021 18:53:44 +0000 (14:53 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 25 May 2021 21:06:51 +0000 (17:06 -0400)
commit171ff6f8a39c97a1b284fa3701a5867367f26be5
treebbc7dce67758792d3b8518ff9fc290f07da8a726
parent01acfe06f3f8145c431f45f6b0af1dbb49496333
nfsd: move fsnotify on client creation outside spinlock

This was causing a "sleeping function called from invalid context"
warning.

I don't think we need the set_and_test_bit() here; clients move from
unconfirmed to confirmed only once, under the client_lock.

The (conf == unconf) is a way to check whether we're in that confirming
case, hopefully that's not too obscure.

Fixes: 472d155a0631 "nfsd: report client confirmation status in "info" file"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c