]> git.baikalelectronics.ru Git - kernel.git/commit
target/sbc: Remove sbc_check_valid_sectors()
authorChristophe Vu-Brugier <cvubrugier@yahoo.fr>
Tue, 10 Jun 2014 15:53:21 +0000 (17:53 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Jun 2014 18:52:40 +0000 (11:52 -0700)
commit2f9996bbec175ff62ba309d16136b42d4f4c1d68
treef1f7fe44b3de9d64dea919ff3bea774cd0760c58
parenta7bdabf01f807c20dcf62fb02fcfb5e81eab296a
target/sbc: Remove sbc_check_valid_sectors()

A similar check is performed at the end of sbc_parse_cdb() and is now
enforced if the SYNCHRONIZE CACHE command's backend supports
->execute_sync_cache().

(Add check_lba goto to avoid *_max_sectors checks - nab)

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c