Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189636
b: refs/heads/master
c: 9a82446
h: refs/heads/master
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed Apr 8, 2010
1 parent 1c3fab0 commit ff2ef01
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 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: 3eac4abaa69949af0e2f64e5c55ee8a22bbdd3e7
refs/heads/master: 9a82446bd269b130a9ac270e720e65c3843d4d0c
13 changes: 7 additions & 6 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2474,12 +2474,6 @@ L: linuxppc-dev@ozlabs.org
S: Odd Fixes
F: drivers/char/hvc_*

VIRTIO CONSOLE DRIVER
M: Amit Shah <amit.shah@redhat.com>
L: virtualization@lists.linux-foundation.org
S: Maintained
F: drivers/char/virtio_console.c

iSCSI BOOT FIRMWARE TABLE (iBFT) DRIVER
M: Peter Jones <pjones@redhat.com>
M: Konrad Rzeszutek Wilk <konrad@kernel.org>
Expand Down Expand Up @@ -5971,6 +5965,13 @@ S: Maintained
F: Documentation/filesystems/vfat.txt
F: fs/fat/

VIRTIO CONSOLE DRIVER
M: Amit Shah <amit.shah@redhat.com>
L: virtualization@lists.linux-foundation.org
S: Maintained
F: drivers/char/virtio_console.c
F: include/linux/virtio_console.h

VIRTIO HOST (VHOST)
M: "Michael S. Tsirkin" <mst@redhat.com>
L: kvm@vger.kernel.org
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,8 @@ nfs4_open_revalidate(struct inode *dir, struct dentry *dentry, int openflags, st
case -EDQUOT:
case -ENOSPC:
case -EROFS:
return PTR_ERR(state);
lookup_instantiate_filp(nd, (struct dentry *)state, NULL);
return 1;
default:
goto out_drop;
}
Expand Down
14 changes: 6 additions & 8 deletions trunk/lib/rwsem-spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,13 @@ void __sched __down_read(struct rw_semaphore *sem)
{
struct rwsem_waiter waiter;
struct task_struct *tsk;
unsigned long flags;

spin_lock_irqsave(&sem->wait_lock, flags);
spin_lock_irq(&sem->wait_lock);

if (sem->activity >= 0 && list_empty(&sem->wait_list)) {
/* granted */
sem->activity++;
spin_unlock_irqrestore(&sem->wait_lock, flags);
spin_unlock_irq(&sem->wait_lock);
goto out;
}

Expand All @@ -165,7 +164,7 @@ void __sched __down_read(struct rw_semaphore *sem)
list_add_tail(&waiter.list, &sem->wait_list);

/* we don't need to touch the semaphore struct anymore */
spin_unlock_irqrestore(&sem->wait_lock, flags);
spin_unlock_irq(&sem->wait_lock);

/* wait to be given the lock */
for (;;) {
Expand Down Expand Up @@ -210,14 +209,13 @@ void __sched __down_write_nested(struct rw_semaphore *sem, int subclass)
{
struct rwsem_waiter waiter;
struct task_struct *tsk;
unsigned long flags;

spin_lock_irqsave(&sem->wait_lock, flags);
spin_lock_irq(&sem->wait_lock);

if (sem->activity == 0 && list_empty(&sem->wait_list)) {
/* granted */
sem->activity = -1;
spin_unlock_irqrestore(&sem->wait_lock, flags);
spin_unlock_irq(&sem->wait_lock);
goto out;
}

Expand All @@ -232,7 +230,7 @@ void __sched __down_write_nested(struct rw_semaphore *sem, int subclass)
list_add_tail(&waiter.list, &sem->wait_list);

/* we don't need to touch the semaphore struct anymore */
spin_unlock_irqrestore(&sem->wait_lock, flags);
spin_unlock_irq(&sem->wait_lock);

/* wait to be given the lock */
for (;;) {
Expand Down

0 comments on commit ff2ef01

Please sign in to comment.