Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94885
b: refs/heads/master
c: 7663c1e
h: refs/heads/master
i:
  94883: 1d1f9f2
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Apr 29, 2008
1 parent e192e5d commit 3d282b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6203554207728f43cfb9fd48585cd6500da73d42
refs/heads/master: 7663c1e2792a9662b23dec6e19bfcd3d55360b8f
4 changes: 4 additions & 0 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,12 @@ struct request_queue

static inline int queue_is_locked(struct request_queue *q)
{
#ifdef CONFIG_SMP
spinlock_t *lock = q->queue_lock;
return lock && spin_is_locked(lock);
#else
return 1;
#endif
}

static inline void queue_flag_set_unlocked(unsigned int flag,
Expand Down

0 comments on commit 3d282b8

Please sign in to comment.