linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] fix potential race between ubifs_tnc_locate() and GC
@ 2020-03-05  9:22 Hou Tao
  2020-03-05  9:22 ` [PATCH v3 1/2] ubifs: factor out helper ubifs_check_node_buf() Hou Tao
  2020-03-05  9:22 ` [PATCH v3 2/2] ubifs: read node from wbuf when it fully sits in wbuf Hou Tao
  0 siblings, 2 replies; 7+ messages in thread
From: Hou Tao @ 2020-03-05  9:22 UTC (permalink / raw)
  To: linux-mtd, Richard Weinberger; +Cc: Carson.Li1, Adrian Hunter, houtao1

Hi,

The patchset tries to fix the problem reported by 李傲傲 [1]. It happens
because there are races between ubifs_tnc_locate() and GC when
ubifs_tnc_locate() finds the target LEB is used as write-buffers or buds.
And the patchset fixes it by only reading the node from write-buffer
when the node is fully contained in write-buffer.

Comments are welcome.

Regards,
Tao

--
v3:
 -- add Link: tag
 -- add UBIFS_CHK_FORCE_DUMP_BAD_NODE flag for error message control

[1]: https://www.spinics.net/lists/linux-mtd/msg10771.html

Hou Tao (2):
  ubifs: factor out helper ubifs_check_node_buf()
  ubifs: read node from wbuf when it fully sits in wbuf

 fs/ubifs/io.c    | 109 +++++++++++++++++++++++------------------------
 fs/ubifs/tnc.c   |  81 +++++++++++++++++++++++++++++++++--
 fs/ubifs/ubifs.h |   5 +++
 3 files changed, 136 insertions(+), 59 deletions(-)


-- 
2.25.0.4.g0ad7144999


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-01  1:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05  9:22 [PATCH v3 0/2] fix potential race between ubifs_tnc_locate() and GC Hou Tao
2020-03-05  9:22 ` [PATCH v3 1/2] ubifs: factor out helper ubifs_check_node_buf() Hou Tao
2020-03-05  9:22 ` [PATCH v3 2/2] ubifs: read node from wbuf when it fully sits in wbuf Hou Tao
2020-03-16 22:21   ` Richard Weinberger
2020-07-01  1:15     ` Hou Tao
2020-03-16 22:33   ` Richard Weinberger
2020-03-18  1:57     ` Hou Tao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).