Re: [PATCH 2/7] mm: drop mmap_sem for page cache read IO submission

2018-10-18 Thread Dave Chinner
On Thu, Oct 18, 2018 at 04:23:13PM -0400, Josef Bacik wrote: > From: Johannes Weiner > > Reads can take a long time, and if anybody needs to take a write lock on > the mmap_sem it'll block any subsequent readers to the mmap_sem while > the read is outstanding, which could cause long delays. Inst

[PATCH 2/7] mm: drop mmap_sem for page cache read IO submission

2018-10-18 Thread Josef Bacik
From: Johannes Weiner Reads can take a long time, and if anybody needs to take a write lock on the mmap_sem it'll block any subsequent readers to the mmap_sem while the read is outstanding, which could cause long delays. Instead drop the mmap_sem if we do any reads at all. Signed-off-by: Johann