Jeff Layton be20aa00c6 nfsd: don't hold ls_mutex across a layout recall
We do need to serialize layout stateid morphing operations, but we
currently hold the ls_mutex across a layout recall which is pretty
ugly. It's also unnecessary -- once we've bumped the seqid and
copied it, we don't need to serialize the rest of the CB_LAYOUTRECALL
vs. anything else. Just drop the mutex once the copy is done.

This was causing a "workqueue leaked lock or atomic" warning and an
occasional deadlock.

There's more work to be done here but this fixes the immediate
regression.

Fixes: cc8a55320b5f "nfsd: serialize layout stateid morphing operations"
Cc: stable@vger.kernel.org
Reported-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2015-12-16 11:49:58 -05:00
..
2014-07-08 17:14:27 -04:00
2014-08-17 12:00:12 -04:00
2015-02-05 14:35:18 +01:00
2015-07-20 14:58:46 -04:00
2015-07-20 14:58:46 -04:00
2015-08-13 10:26:24 -04:00
2015-04-21 16:16:02 -04:00
2015-02-16 11:43:13 -05:00
2015-02-02 18:09:43 +01:00