projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bbd45d
)
lightnvm: pblk: remove size and out of bounds read check
author
Matias Bjørling
<
[email protected]
>
Tue, 9 Oct 2018 11:11:39 +0000
(13:11 +0200)
committer
Jens Axboe
<
[email protected]
>
Tue, 9 Oct 2018 14:25:06 +0000
(08:25 -0600)
The I/O size and capacity checks are already done by the block layer.
Signed-off-by: Matias Bjørling <
[email protected]
>
Reviewed-by: Javier González <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
drivers/lightnvm/pblk-read.c
patch
|
blob
|
history
diff --git
a/drivers/lightnvm/pblk-read.c
b/drivers/lightnvm/pblk-read.c
index 9c61c19be5dc1a7c3a033f6021d83355dc18c729..ba3dcb6be4c378993854ac247f5c7f3776ae0bc5 100644
(file)
--- a/
drivers/lightnvm/pblk-read.c
+++ b/
drivers/lightnvm/pblk-read.c
@@
-449,13
+449,6
@@
int pblk_submit_read(struct pblk *pblk, struct bio *bio)
DECLARE_BITMAP(read_bitmap, NVM_MAX_VLBA);
int ret = NVM_IO_ERR;
- /* logic error: lba out-of-bounds. Ignore read request */
- if (blba >= pblk->rl.nr_secs || nr_secs > NVM_MAX_VLBA) {
- WARN(1, "pblk: read lba out of bounds (lba:%llu, nr:%d)\n",
- (unsigned long long)blba, nr_secs);
- return NVM_IO_ERR;
- }
-
generic_start_io_acct(q, REQ_OP_READ, bio_sectors(bio),
&pblk->disk->part0);