gfs2: fix flock panic issue
authorJunxiao Bi <junxiao.bi@oracle.com>
Tue, 22 Dec 2015 14:06:08 +0000 (08:06 -0600)
committerBob Peterson <rpeterso@redhat.com>
Tue, 22 Dec 2015 14:06:08 +0000 (08:06 -0600)
commita93a99838248bdab49db2eaac00236847670bc7f
tree6878b5d6ee05d7af15a75f3f0985528003cb5ae4
parent6cc4b6e801c725321e9f63ca7c2d00af8df24699
gfs2: fix flock panic issue

Commit 4f6563677ae8 ("Move locks API users to locks_lock_inode_wait()")
moved flock/posix lock identify code to locks_lock_inode_wait(), but
missed to set fl_flags to FL_FLOCK which will cause kernel panic in
locks_lock_inode_wait().

Fixes: 4f6563677ae8 ("Move locks API users to locks_lock_inode_wait()")
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/file.c