Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1302653

Re: [PATCH] lightnvm: add full block direct to the gc list

From Matias <mb@lightnvm.io>
Newsgroups linux.kernel
Subject Re: [PATCH] lightnvm: add full block direct to the gc list
Date 2016-01-06 12:10 +0100
Message-ID <qNU8A-jS-71@gated-at.bofh.it> (permalink)
References <qNa5I-1L4-9@gated-at.bofh.it> <qNbuO-2MN-17@gated-at.bofh.it> <qNwzi-j5-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/05/2016 10:58 AM, Wenwei Tao wrote:
> You are right, a deadlock might occur if interrupt is not disabled.
>
> We might add the block to prio_list when we find the block is full in
> rrpc_alloc_addr and check whether all the writes are complete in
> rrpc_lun_gc, in this way we may avoid gcb allocation fail and irq
> disable issues.
>
> But this still has a problem. We allocate page from block before
> write, but the bio submission may fail, the bio never get execute and
> rrpc_end_io never get called on this bio, this may lead to a
> situation: a block's pages are all allocated, but not all of them are
> used. So this block is not fully used now, and will not get reclaimed
> for further use.
>
> I think we may need to put the page back when the page is not actually
> used/programmed.
You're right. It has to take multiple cases into account on failure, 
where if a write fails, it might mean the hole block must be written to 
a new block, the I/O it self must be remapped to another address, or 
something else depending on the error code. This logic is yet to be 
routed into rrpc.

Javier is working on write buffering, which will fix some of these issues.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] lightnvm: add full block direct to the gc list Wenwei Tao <ww.tao0320@gmail.com> - 2016-01-04 11:00 +0100
  Re: [PATCH] lightnvm: add full block direct to the gc list Matias Bjørling <mb@lightnvm.io> - 2016-01-04 12:30 +0100
    Re: [PATCH] lightnvm: add full block direct to the gc list Wenwei Tao <ww.tao0320@gmail.com> - 2016-01-05 11:00 +0100
      Re: [PATCH] lightnvm: add full block direct to the gc list Matias <mb@lightnvm.io> - 2016-01-06 12:10 +0100

csiph-web