[lkml]   [2019]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/2] pipe: Remove assertion from pipe_poll()
On Thu, Dec 5, 2019 at 9:21 AM David Howells <> wrote:
> An assertion check was added to pipe_poll() to make sure that the ring
> occupancy isn't seen to overflow the ring size. However, since no locks
> are held when the three values are read, it is possible for F_SETPIPE_SZ to
> intervene and muck up the calculation, thereby causing the oops.
> Fix this by simply removing the assertion and accepting that the
> calculation might be approximate.

This is not what the patch actually does.

The patch you sent only adds the wakeup when the pipe size changes.

Please re-generate both patches and re-send.


 \ /
  Last update: 2019-12-05 18:42    [W:0.031 / U:2.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site