]> git.neil.brown.name Git - history.git/commit
[SUNRPC]: Use completions instead of sleep_on for rpciod.
authorChristoph Hellwig <hch@lst.de>
Sun, 8 Feb 2004 04:43:57 +0000 (20:43 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Sun, 8 Feb 2004 04:43:57 +0000 (20:43 -0800)
commit8e8d51232c158d999463d59d0e9bff70af681f9e
tree531f4ae9a002b2d07496a5c871a6c7516dbbeb73
parentc1cea42a12f163375058fb54b4963bce9c72e728
[SUNRPC]: Use completions instead of sleep_on for rpciod.

The rpciod shutdown code gives ugly sleep_on without BKL warnings in
-mm.  And it looks indeed somewhat racy.

The easy fix would be to simply use a completion as in the patch below,
but that removes all the signal fuzzing semantics the current code has.
I don't really understand why we want to cancel the operation by
signals, but I think it'd be better to leave that to people familar with
the code anyway..
net/sunrpc/sched.c