X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fpipe.c;h=78fd0d0788dbc465c3d7a6ba674bb64a6ebea25d;hb=53d8ab29f8f6d67e37857b68189b38fa3d87dd8e;hp=0e0752ef27159f6183dabc1749e49fca8494319a;hpb=907e26b6f52004ecec152f5650b5dc687aed7157;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/pipe.c b/fs/pipe.c index 0e0752ef2715..78fd0d0788db 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -663,10 +663,11 @@ out: wake_up_interruptible_sync_poll(&pipe->wait, POLLIN | POLLRDNORM); kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); } - if (ret > 0) { + if (ret > 0 && sb_start_write_trylock(file_inode(filp)->i_sb)) { int err = file_update_time(filp); if (err) ret = err; + sb_end_write(file_inode(filp)->i_sb); } return ret; }