autofs4: check kernel communication pipe is valid for write
authorIan Kent <raven@themaw.net>
Thu, 24 Jul 2008 04:30:20 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:32 +0000 (10:47 -0700)
commite64be33ccaceaca67c84237dff8805b861398eab
tree574c0eed196ac6115e0f042c1e4564d1b85474d2
parentf4c7da02615bebcaf89f15a8d055922f515160b8
autofs4: check kernel communication pipe is valid for write

It is possible for an autofs mount to become catatonic (and for the daemon
communication pipe to become NULL) after a wait has been initiallized but
before the request has been sent to the daemon.  We need to check for this
before sending the request packet.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/waitq.c