Do not batch close gofer.handle in lisafs.

In some scenarios, these handles are backed by open FDs to FIFO files. We can
not delay closing of such handles because application behavior depends on the
FD being closed immediately. For example, for pipes, when the write end is
closed, then read(2) on the read end will return 0 indicating that there are no
writers.

PiperOrigin-RevId: 429698807
This commit is contained in:
Ayush Ranjan
2022-02-18 20:03:19 -08:00
committed by gVisor bot
parent ec0db35a80
commit 492ea1a04e
+1 -1
View File
@@ -105,7 +105,7 @@ func (h *handle) isOpen() bool {
func (h *handle) close(ctx context.Context) {
if h.fdLisa.Client() != nil {
h.fdLisa.CloseBatched(ctx)
h.fdLisa.Close(ctx)
} else {
h.file.close(ctx)
h.file = p9file{}