Message ID | 1626697933-6971-17-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: sync to OpenSFS as of July 18, 2021 | expand |
diff --git a/fs/lustre/llite/file.c b/fs/lustre/llite/file.c index 1ef5fd8..b822ca5 100644 --- a/fs/lustre/llite/file.c +++ b/fs/lustre/llite/file.c @@ -5609,7 +5609,11 @@ static int ll_layout_lock_set(struct lustre_handle *lockh, enum ldlm_mode mode, lock = ldlm_handle2lock(lockh); LASSERT(lock); - LASSERT(ldlm_has_layout(lock)); + + if (!ldlm_has_layout(lock)) { + rc = -EAGAIN; + goto out; + } LDLM_DEBUG(lock, "File " DFID "(%p) being reconfigured", PFID(&lli->lli_fid), inode);