OSDN Git Service

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)
commit68adb0af51ebccb72ffb14d49cb8121b1afc4259
treecfe18744aa4a96680cf344092cff9a741fe152c3
parentdff02cc1a34fcb60904a2c57cb351857cc11219e
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