aoecmd.c (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) | aoecmd.c (0e0cc9df86bc56e5d55a72e0adf530d6f7fe8628) |
---|---|
1/* Copyright (c) 2013 Coraid, Inc. See COPYING for GPL terms. */ 2/* 3 * aoecmd.c 4 * Filesystem request handling methods 5 */ 6 7#include <linux/ata.h> 8#include <linux/slab.h> --- 730 unchanged lines hidden (view full) --- 739 good++; 740 741 if (untainted) 742 *untainted = good; 743 return i; 744} 745 746static void | 1/* Copyright (c) 2013 Coraid, Inc. See COPYING for GPL terms. */ 2/* 3 * aoecmd.c 4 * Filesystem request handling methods 5 */ 6 7#include <linux/ata.h> 8#include <linux/slab.h> --- 730 unchanged lines hidden (view full) --- 739 good++; 740 741 if (untainted) 742 *untainted = good; 743 return i; 744} 745 746static void |
747rexmit_timer(ulong vp) | 747rexmit_timer(struct timer_list *timer) |
748{ 749 struct aoedev *d; 750 struct aoetgt *t; 751 struct aoeif *ifp; 752 struct frame *f; 753 struct list_head *head, *pos, *nx; 754 LIST_HEAD(flist); 755 register long timeout; 756 ulong flags, n; 757 int i; 758 int utgts; /* number of aoetgt descriptors (not slots) */ 759 int since; 760 | 748{ 749 struct aoedev *d; 750 struct aoetgt *t; 751 struct aoeif *ifp; 752 struct frame *f; 753 struct list_head *head, *pos, *nx; 754 LIST_HEAD(flist); 755 register long timeout; 756 ulong flags, n; 757 int i; 758 int utgts; /* number of aoetgt descriptors (not slots) */ 759 int since; 760 |
761 d = (struct aoedev *) vp; | 761 d = from_timer(d, timer, timer); |
762 763 spin_lock_irqsave(&d->lock, flags); 764 765 /* timeout based on observed timings and variations */ 766 timeout = rto(d); 767 768 utgts = count_targets(d, NULL); 769 --- 654 unchanged lines hidden (view full) --- 1424 ah->scnt = 1; 1425 ah->cmdstat = ATA_CMD_ID_ATA; 1426 ah->lba3 = 0xa0; 1427 1428 skb->dev = t->ifp->nd; 1429 1430 d->rttavg = RTTAVG_INIT; 1431 d->rttdev = RTTDEV_INIT; | 762 763 spin_lock_irqsave(&d->lock, flags); 764 765 /* timeout based on observed timings and variations */ 766 timeout = rto(d); 767 768 utgts = count_targets(d, NULL); 769 --- 654 unchanged lines hidden (view full) --- 1424 ah->scnt = 1; 1425 ah->cmdstat = ATA_CMD_ID_ATA; 1426 ah->lba3 = 0xa0; 1427 1428 skb->dev = t->ifp->nd; 1429 1430 d->rttavg = RTTAVG_INIT; 1431 d->rttdev = RTTDEV_INIT; |
1432 d->timer.function = rexmit_timer; | 1432 d->timer.function = (TIMER_FUNC_TYPE)rexmit_timer; |
1433 1434 skb = skb_clone(skb, GFP_ATOMIC); 1435 if (skb) { 1436 do_gettimeofday(&f->sent); 1437 f->sent_jiffs = (u32) jiffies; 1438 } 1439 1440 return skb; --- 345 unchanged lines hidden --- | 1433 1434 skb = skb_clone(skb, GFP_ATOMIC); 1435 if (skb) { 1436 do_gettimeofday(&f->sent); 1437 f->sent_jiffs = (u32) jiffies; 1438 } 1439 1440 return skb; --- 345 unchanged lines hidden --- |