Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131297
b: refs/heads/master
c: 4d48a54
h: refs/heads/master
i:
  131295: 63e556f
v: v3
  • Loading branch information
Paul Clements authored and Linus Torvalds committed Feb 11, 2009
1 parent 8c631f0 commit 73007fc
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 9480c53e9b2aa13a06283ffb96bb8f1873ac4e9a
refs/heads/master: 4d48a542b42747c36a5937447d9c3de7c897ea50
9 changes: 9 additions & 0 deletions trunk/drivers/block/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,15 @@ static void do_nbd_request(struct request_queue * q)

BUG_ON(lo->magic != LO_MAGIC);

if (unlikely(!lo->sock)) {
printk(KERN_ERR "%s: Attempted send on closed socket\n",
lo->disk->disk_name);
req->errors++;
nbd_end_request(req);
spin_lock_irq(q->queue_lock);
continue;
}

spin_lock_irq(&lo->queue_lock);
list_add_tail(&req->queuelist, &lo->waiting_queue);
spin_unlock_irq(&lo->queue_lock);
Expand Down

0 comments on commit 73007fc

Please sign in to comment.