pipe: preparation to new locking rules
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Mar 2013 06:16:30 +0000 (02:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:12:59 +0000 (14:12 -0400)
commit18c03cfd403b88852f75f200206983ee6df28423
tree97ed126248046cbd3ec0c17f7cac3a8a0071704d
parentfc7478a2bfa9abd19657d2bbc9ae24185a41e21b
pipe: preparation to new locking rules

* use the fact that file_inode(file)->i_pipe doesn't change
  while the file is opened - no locks needed to access that.
* switch to pipe_lock/pipe_unlock where it's easy to do

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pipe.c