Patch "usb: gadget: f_fs: do not set cancel function on synchronous {read,write}" has been added to the 4.1-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
usb: gadget: f_fs: do not set cancel function on synchronous {read,write}to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-gadget-f_fs-do-not-set-cancel-function-on-synchronous-read-write.patch
and it can be found in the queue-4.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4088acf1e845aba35f30fb91dee10649edbd0e84Mon Sep 17 00:00:00 2001
From: Rui Miguel Silva <[email protected]>
Date: Mon, 18 May 2015 16:02:07 +0100
Subject: usb: gadget: f_fs: do not set cancel function on synchronous {read,write}
From: Rui Miguel Silva <[email protected]>
commit 4088acf1e845aba35f30fb91dee10649edbd0e84 upstream.
do not try to set cancel function in synchronous operations in ffs_epfile_{read,write}_iter.
--- drivers/usb/gadget/function/f_fs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/usb/gadget/function/f_fs.c +4 -2
@@ -924,7 +924,8 @@ static ssize_t ffs_epfile_write_iter(str kiocb->private = p; -kiocb_set_cancel_fn (kiocb, ffs_aio_cancel); +if (p->aio) +kiocb_set_cancel_fn (kiocb, ffs_aio_cancel); res =ffs_epfile_io (kiocb->ki_filp, p);if (res == -EIOCBQUEUED )
@@ -968,7 +969,8 @@ static ssize_t ffs_epfile_read_iter(stru kiocb->private = p; -kiocb_set_cancel_fn (kiocb, ffs_aio_cancel); +if (p->aio) +kiocb_set_cancel_fn (kiocb, ffs_aio_cancel); res =ffs_epfile_io (kiocb->ki_filp, p);if (res == -EIOCBQUEUED )
Patches currently in stable-queue which might be from [email protected] are
queue-4.1/usb-gadget-f_fs-do-not-set-cancel-function-on-synchronous-read-write.patch