CIFS: Do not kmalloc under the flocks spinlock
authorPavel Shilovsky <piastry@etersoft.ru>
Mon, 5 Mar 2012 06:39:20 +0000 (09:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2012 16:02:20 +0000 (09:02 -0700)
commit989961646eaad60b22efb8e23090aea563514874
tree5f5a367f02a1e65229b74a571ba0d6eae0defb27
parent7dfe63e95b900ebe5d328225f7b02c38d6c21832
CIFS: Do not kmalloc under the flocks spinlock

commit d5751469f210d2149cc2159ffff66cbeef6da3f2 upstream.

Reorganize the code to make the memory already allocated before
spinlock'ed loop.

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/file.c