[PATCH] badblocks: fix overlapping check for clearing

2016-09-06 Thread Tomasz Majchrzak
block start is before clear block end. Signed-off-by: Tomasz Majchrzak --- block/badblocks.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/block/badblocks.c b/block/badblocks.c index 7be53cb..b2ffcc7 100644 --- a/block/badblocks.c +++ b/block/badblocks.c @@ -354,7

[PATCH][RESEND] badblocks: fix overlapping check for clearing

2016-09-27 Thread Tomasz Majchrzak
block start is before clear block end. Signed-off-by: Tomasz Majchrzak --- block/badblocks.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/block/badblocks.c b/block/badblocks.c index 7be53cb..b2ffcc7 100644 --- a/block/badblocks.c +++ b/block/badblocks.c @@ -354,7

[PATCH v2] badblocks: fix overlapping check for clearing

2016-10-12 Thread Tomasz Majchrzak
block start is before clear block end. Signed-off-by: Tomasz Majchrzak Acked-by: NeilBrown --- block/badblocks.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/block/badblocks.c b/block/badblocks.c index 7be53cb..b2ffcc7 100644 --- a/block/badblocks.c +++ b/block

Re: [PATCH] badblocks: fix overlapping check for clearing

2016-10-12 Thread Tomasz Majchrzak
On Mon, Oct 10, 2016 at 03:32:58PM -0700, Dan Williams wrote: > > On Tue, Sep 06 2016, Tomasz Majchrzak wrote: > >> --- > >> block/badblocks.c | 6 -- > >> 1 file changed, 4 insertions(+), 2 deletions(-) > >> > >> diff --git a/block/badblock

[PATCH 1/3 v2] badblocks: add function to check for unacked badblocks

2016-10-18 Thread Tomasz Majchrzak
rom sysfs file so it cannot be sure if the list available in sysfs at the moment is complete (potential race with other badblocks reported at the same time). Signed-off-by: Tomasz Majchrzak --- block/badblocks.c | 36 include/linux/badblocks.h | 1 +

[PATCH 2/3 v2] md: add bad block support for external metadata

2016-10-18 Thread Tomasz Majchrzak
blocks any more will be removed from the array before it is unlocked. Simplify state_show function by adding a separator at the end of each string and overwrite last separator with new line. Signed-off-by: Tomasz Majchrzak Reviewed-by: Artur Paszkiewicz --

[PATCH 3/3 v2] md: unblock array if bad blocks have been acknowledged

2016-10-18 Thread Tomasz Majchrzak
pport case). Signed-off-by: Tomasz Majchrzak Reviewed-by: Artur Paszkiewicz --- drivers/md/md.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index cc05236..ce585b7 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @

Re: [PATCH] badblocks: badblocks_set/clear update unacked_exist

2016-10-21 Thread Tomasz Majchrzak
ear(struct badblocks *bb, sector_t s, int > sectors) > } > } > > + badblocks_update_acked(bb); > bb->changed = 1; > out: > write_sequnlock_irq(&bb->lock); > -- > 2.9.3 Reviewed-by: Tomasz Majchrzak Tested-by: Tomasz Majchrzak -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html