git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.git]
/
drivers
/
target
/
target_core_iblock.c
diff --git
a/drivers/target/target_core_iblock.c
b/drivers/target/target_core_iblock.c
index f4a075303e9ad488fc921299603f9f4c74bce8a8..6949ea8bc387c7acac2571862d36f0c3f2e0ca04 100644
(file)
--- a/
drivers/target/target_core_iblock.c
+++ b/
drivers/target/target_core_iblock.c
@@
-502,7
+502,7
@@
iblock_execute_write_same(struct se_cmd *cmd)
/* Always in 512 byte units for Linux/Block */
block_lba += sg->length >> SECTOR_SHIFT;
- sectors -=
1
;
+ sectors -=
sg->length >> SECTOR_SHIFT
;
}
iblock_submit_bios(&list);