]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81f4f92747dc20aeb9ec85786bee8486d6c1c7ec
tree97ed126248046cbd3ec0c17f7cac3a8a0071704d
parentf04deef3a565113bb4b6e01ffaf618d0c1f58c11
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