]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: do crc calculations outside loop
authorAlex Elder <elder@dreamhost.com>
Wed, 15 Feb 2012 13:43:54 +0000 (07:43 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:51 +0000 (10:47 -0500)
commit801db157ad8fe10f05df600d1486cc1238841747
treeeed6ceddbca3021e7492a1baaf658922e2aa8a6c
parent78f50397123628e526886cf023ef6caf8aca52bb
libceph: do crc calculations outside loop

Move blocks of code out of loops in read_partial_message_section()
and read_partial_message().  They were only was getting called at
the end of the last iteration of the loop anyway.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/messenger.c