* [PATCH] block: Add missed break in generic_make_request_checks
@ 2016-12-05 21:18 Mike Krinkin
2016-12-05 21:21 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Mike Krinkin @ 2016-12-05 21:18 UTC (permalink / raw)
To: axboe
Cc: linux-block, hch, martin.petersen, hare, shaun, damien.lemoal,
shaun.tancheff, chaitanya.kulkarni, Mike Krinkin
With recent linux-next i started to get this error:
[ 19.746764] EXT4-fs (sda6): Delayed block allocation failed for inode 4999023 at logical offset 0 with max blocks 6 with error 95
[ 19.746767] EXT4-fs (sda6): This should not happen!! Data will be lost
Bisect points at the commit e73c23ff736e ("block: add async variant of
blkdev_issue_zeroout") but i think that the real problem is a missed
break in the commit 2d253440b5af ("block: Define zoned block device
operations").
Fixes: 2d253440b5af ("block: Define zoned block device operations")
Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com>
---
block/blk-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-core.c b/block/blk-core.c
index 24de87d..1998aa4 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1947,6 +1947,7 @@ generic_make_request_checks(struct bio *bio)
case REQ_OP_WRITE_SAME:
if (!bdev_write_same(bio->bi_bdev))
goto not_supported;
+ break;
case REQ_OP_ZONE_REPORT:
case REQ_OP_ZONE_RESET:
if (!bdev_is_zoned(bio->bi_bdev))
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] block: Add missed break in generic_make_request_checks
2016-12-05 21:18 [PATCH] block: Add missed break in generic_make_request_checks Mike Krinkin
@ 2016-12-05 21:21 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2016-12-05 21:21 UTC (permalink / raw)
To: Mike Krinkin
Cc: linux-block, hch, martin.petersen, hare, shaun, damien.lemoal,
shaun.tancheff, chaitanya.kulkarni
On 12/05/2016 02:18 PM, Mike Krinkin wrote:
> With recent linux-next i started to get this error:
>
> [ 19.746764] EXT4-fs (sda6): Delayed block allocation failed for inode 4999023 at logical offset 0 with max blocks 6 with error 95
> [ 19.746767] EXT4-fs (sda6): This should not happen!! Data will be lost
>
> Bisect points at the commit e73c23ff736e ("block: add async variant of
> blkdev_issue_zeroout") but i think that the real problem is a missed
> break in the commit 2d253440b5af ("block: Define zoned block device
> operations").
Fix was already committed for this:
http://git.kernel.dk/cgit/linux-block/commit/?h=for-4.10/block&id=58886785db318588f95c8036abb2a47016c1f14c
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-05 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-05 21:18 [PATCH] block: Add missed break in generic_make_request_checks Mike Krinkin
2016-12-05 21:21 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox