提交 e06c9dfe 编写于 作者: D Dmitry Eremin 提交者: Greg Kroah-Hartman

staging/lustre/llite: A not locked mutex can be unlocked.

In case of memory pressure a not locked mutex can be unlocked
in function ll_file_open(). This is not allowed and subsequent
behavior is not defined.

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3157
Lustre-change: http://review.whamcloud.com/6028Signed-off-by: NDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: NJohn Hammond <johnlockwoodhammond@gmail.com>
Reviewed-by: NNikitas Angelinas <nikitas_angelinas@xyratex.com>
Reviewed-by: NSebastien Buisson <sebastien.buisson@bull.net>
Reviewed-by: NAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: NPeng Tao <tao.peng@emc.com>
Signed-off-by: NAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 73863d83
......@@ -526,7 +526,7 @@ int ll_file_open(struct inode *inode, struct file *file)
fd = ll_file_data_get();
if (fd == NULL)
GOTO(out_och_free, rc = -ENOMEM);
GOTO(out_openerr, rc = -ENOMEM);
fd->fd_file = file;
if (S_ISDIR(inode->i_mode)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册