]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: rpc_unlink() must check for unhashed dentries
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 10 Aug 2006 21:51:46 +0000 (17:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 24 Aug 2006 19:50:42 +0000 (15:50 -0400)
commit65af1d2b4f25c9bc1c28db15718e0ee2ee499af3
treecfe18744aa4a96680cf344092cff9a741fe152c3
parentff96bdb78a791515b75110417dee161b3e7fc021
SUNRPC: rpc_unlink() must check for unhashed dentries

A prior call to rpc_depopulate() by rpc_rmdir() on the parent directory may
have already called simple_unlink() on this entry.
Add the same check to rpc_rmdir(). Also remove a redundant call to
rpc_close_pipes() in rpc_rmdir.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from 0bbfb9d20f6437c4031aa3bf9b4d311a053e58e3 commit)
net/sunrpc/rpc_pipe.c