]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Do not kmalloc under the flocks spinlock
authorPavel Shilovsky <piastry@etersoft.ru>
Mon, 5 Mar 2012 06:39:20 +0000 (09:39 +0300)
committerSteve French <sfrench@us.ibm.com>
Wed, 7 Mar 2012 03:50:15 +0000 (21:50 -0600)
commitd5751469f210d2149cc2159ffff66cbeef6da3f2
tree7d5e9af79050cfe56e4412d6ebdd90dfce55c8d9
parentb0f8ef202ec7f07ba9bd93150d54ef4327851422
CIFS: Do not kmalloc under the flocks spinlock

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

Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c