pipe: make poll_usage boolean and annotate its access
[linux-2.6-block.git] / fs / pipe.c
index e140ea150bbb14e0ab0c83808e0b155b158bfc6a..d04c3fce28a6455191df0d8945b683e7f8ffabf7 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -653,7 +653,7 @@ pipe_poll(struct file *filp, poll_table *wait)
        unsigned int head, tail;
 
        /* Epoll has some historical nasty semantics, this enables them */
-       pipe->poll_usage = 1;
+       WRITE_ONCE(pipe->poll_usage, true);
 
        /*
         * Reading pipe state only -- no need for acquiring the semaphore.