aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2024-01-24 17:52:44 +0000
committerRichard Weinberger <[email protected]>2024-02-25 21:07:59 +0100
commit723012cab779eee8228376754e22c6594229bf8f (patch)
tree3d4017ea695437f2c0cf6e7e780e3955a5feedde /net/lapb/lapb_timer.c
parentb401b621758e46812da61fa58a67c3fd8d91de0d (diff)
ubifs: Set page uptodate in the correct place
Page cache reads are lockless, so setting the freshly allocated page uptodate before we've overwritten it with the data it's supposed to have in it will allow a simultaneous reader to see old data. Move the call to SetPageUptodate into ubifs_write_end(), which is after we copied the new data into the page. Fixes: 1e51764a3c2a ("UBIFS: add new flash file system") Cc: [email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions