usb: gadget: f_fs: cancellation fix
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesIn review
- v22 patches 4 repliesSuperseded
- v13 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- Neill remarked, that to avoid lockdep issues, spin_lock_irq/spin_unlock_irq is needed in ffs_user_copy_worker().
Now solved differently via smp_cond_load_acquire(), avoiding a spinlock altogether.
- Revert order of patches:
First cancellation fix, because this also applies to stable kernels, then refactoring (because this only applies to recent kernels).
- Add Stable and Fixes tags to (now) first patch.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | usb: gadget: f_fs: register cancellation handler only after request queueingdrivers/ | +16 | 0 replies | |
| 2/2 | usb: gadget: f_fs: simplify error handling using gotodrivers/ | +54 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] usb: gadget: f_fs: cancellation fix
This 2 part patch series fixes a previous commit and does some refactoring.
Note: The first patch in this series only applies cleanly, if "[PATCH] usb: gadget: f_fs: Fix mmgrab()/mmdrop() balance." is applied first.
---
Changes in v3:
- Neill remarked, that to avoid lockdep issues, spin_lock_irq/spin_unlock_irq is needed in ffs_user_copy_worker().
Now solved differently via smp_cond_load_acquire(), avoiding a spinlock altogether.
- Revert order of patches:
First cancellation fix, because this also applies to stable kernels, then refactoring (because this only applies to recent kernels).
- Add Stable and Fixes tags to (now) first patch.
Link to v2: https://lore.kernel.org/linux-usb/[email protected]/
Changes in v2:
- First patch "Fix mmgrab()/mmdrop() balance." now posted separately.
- Fix comment style and whitespace as requested by
Neill Kapron <[email protected]>
- Make sure io_data->kiocb->ki_complete() == aio_complete_rw() can't be called before kiocb_set_cancel_fn() has been called. That should it make safe to call kiocb_set_cancel_fn() after usb_ep_queue().
Link to v1: https://lore.kernel.org/r/[email protected]
---
Ingo Rohloff (2):
usb: gadget: f_fs: register cancellation handler only after request
queueing
usb: gadget: f_fs: simplify error handling using goto
drivers/usb/gadget/function/f_fs.c | 116 ++++++++++++++++------------- 1 file changed, 66 insertions(+), 50 deletions(-)
--
2.55.0