Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45099
b: refs/heads/master
c: 1ebb110
h: refs/heads/master
i:
  45097: 6fa07d4
  45095: 67fbbd5
v: v3
  • Loading branch information
Zach Brown authored and Linus Torvalds committed Dec 30, 2006
1 parent 87b5c56 commit 6a64feb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43cdff92ad47e0ca024c8a07d29f9bb6119e759c
refs/heads/master: 1ebb1101c556b1915ff041655e629a072e64dcda
7 changes: 3 additions & 4 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,6 @@ static void use_mm(struct mm_struct *mm)
* by the calling kernel thread
* (Note: this routine is intended to be called only
* from a kernel thread context)
*
* Comments: Called with ctx->ctx_lock held. This nests
* task_lock instead ctx_lock.
*/
static void unuse_mm(struct mm_struct *mm)
{
Expand Down Expand Up @@ -850,14 +847,16 @@ static void aio_kick_handler(struct work_struct *work)
{
struct kioctx *ctx = container_of(work, struct kioctx, wq.work);
mm_segment_t oldfs = get_fs();
struct mm_struct *mm;
int requeue;

set_fs(USER_DS);
use_mm(ctx->mm);
spin_lock_irq(&ctx->ctx_lock);
requeue =__aio_run_iocbs(ctx);
unuse_mm(ctx->mm);
mm = ctx->mm;
spin_unlock_irq(&ctx->ctx_lock);
unuse_mm(mm);
set_fs(oldfs);
/*
* we're in a worker thread already, don't use queue_delayed_work,
Expand Down

0 comments on commit 6a64feb

Please sign in to comment.