]> git.baikalelectronics.ru Git - kernel.git/commit
mei: amthif: allow the read completion after close
authorTomas Winkler <tomas.winkler@intel.com>
Fri, 27 Jan 2017 14:32:44 +0000 (16:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2017 10:07:43 +0000 (11:07 +0100)
commit750867a1acf3ec1bacff0f53fb8c5efde6dfb36f
treed43063adc2217425fa0abf7901b083ffac7cf12d
parentf4c387f697192675d65fe9d4045950a7d84bf9a2
mei: amthif: allow the read completion after close

The amthif client connection is shared over multiple file descriptors.
In case a file descriptor was closed immediately after a write, the read
credits should be still available so the pending reads can be cleaned
from the queue, hence we cannot drop the control read list, this is
done only upon connection close.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/amthif.c