automount: don't try to umount if it already happened
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 24 Jul 2015 20:21:59 +0000 (22:21 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 24 Jul 2015 20:30:22 +0000 (22:30 +0200)
commit5f8ae398ae2ff71aacd85663e30eebb4ce0078f4
treee82e392a6ec3f8d8026451d2aba7072b607a7dce
parent816b4547dac1b052239ad6ee3801c78c691e5cb4
automount: don't try to umount if it already happened

Return the token immediately instead. Otherwise the token is never returned
to the kernel, because the umount job is a noop and will not trigger a
state change.
src/core/automount.c