]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target/rd: reduce code duplication in rd_execute_rw()
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 5 Apr 2015 14:59:38 +0000 (23:59 +0900)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:59 +0000 (23:27 -0700)
commit6766cc81191c946dcb8e8bfe49f220f9a1cc8b5c
treeb5945fa9c455771e40d35b03d112d58d800ac1df
parent2e1cd90d718a5fc721e0caa0dc9f037d9b1f46b8
target/rd: reduce code duplication in rd_execute_rw()

Factor out code duplication in rd_execute_rw() into a helper function
rd_do_prot_rw().  This change is required to minimize the forthcoming
fix in rd_do_prot_rw().

(Fix up v4.1 for-next fuzz - nab)

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Sagi Grimberg <sagig@dev.mellanox.co.il>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: target-devel@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_rd.c