Skip to content

Commit

Permalink
block: Turn off TSA for write_begin and write_end
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Falcato <[email protected]>
  • Loading branch information
heatd committed Nov 29, 2024
1 parent 6ad7b8a commit 1d4844f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/kernel/fs/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int block_readpage_write(struct vm_object *vm_obj, off_t offset, size_t l
}

static int block_write_begin(struct file *filp, struct vm_object *vm_obj, off_t offset, size_t len,
struct page **ppage)
struct page **ppage) NO_THREAD_SAFETY_ANALYSIS
{
struct page *page;
int st = filemap_find_page(filp->f_ino, offset >> PAGE_SHIFT,
Expand Down Expand Up @@ -295,7 +295,8 @@ static int __block_write_end(struct file *file, struct vm_object *vm_obj, off_t
}

static int block_write_end(struct file *file, struct vm_object *vm_obj, off_t offset,
unsigned int written, unsigned int to_write, struct page *page)
unsigned int written, unsigned int to_write,
struct page *page) NO_THREAD_SAFETY_ANALYSIS
{
__block_write_end(file, vm_obj, offset, written, to_write, page);
unlock_page(page);
Expand Down

0 comments on commit 1d4844f

Please sign in to comment.