Repository navigation
Commit c826a31
[SCSI] fcoe: Out of order tx frames was causing several check condition SCSI status
frames followed by these errors in log.
[sdp] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
[sdp] Sense Key : Aborted Command [current]
[sdp] Add. Sense: Data phase error
This was causing some test apps to exit due to write failure under heavy
load.
This was due to a race around adding and removing tx frame skb in
fcoe_pending_queue, Chris Leech helped me to find that brief unlocking
period when pulling skb from fcoe_pending_queue in various contexts
(fcoe_watchdog and fcoe_xmit) and then adding skb back into fcoe_pending_queue
up on a failed fcoe_start_io could change skb/tx frame order in
fcoe_pending_queue. Thanks Chris.
This patch allows only single context to pull skb from fcoe_pending_queue
at any time to prevent above described ordering issue/race by use of
fcoe_pending_queue_active flag.
This patch simplified fcoe_watchdog with modified fcoe_check_wait_queue by
use of FCOE_LOW_QUEUE_DEPTH instead previously used several conditionals
to clear and set lp->qfull.
I think FCOE_MAX_QUEUE_DEPTH with FCOE_LOW_QUEUE_DEPTH will work better
in re/setting lp->qfull and these could be fine tuned for performance.
Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>1 parent e904158 commit c826a31
3 files changed
Lines changed: 23 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
723 | 724 | | |
724 | 725 | | |
725 | 726 | | |
726 | | - | |
727 | 727 | | |
728 | | - | |
729 | 728 | | |
730 | 729 | | |
731 | 730 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
| 731 | + | |
| 732 | + | |
741 | 733 | | |
742 | 734 | | |
743 | 735 | | |
| |||
753 | 745 | | |
754 | 746 | | |
755 | 747 | | |
756 | | - | |
757 | | - | |
| 748 | + | |
| 749 | + | |
758 | 750 | | |
759 | 751 | | |
760 | 752 | | |
| |||
764 | 756 | | |
765 | 757 | | |
766 | 758 | | |
767 | | - | |
768 | 759 | | |
769 | 760 | | |
| 761 | + | |
770 | 762 | | |
771 | 763 | | |
772 | 764 | | |
773 | 765 | | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
779 | 769 | | |
780 | 770 | | |
781 | 771 | | |
782 | 772 | | |
783 | | - | |
| 773 | + | |
784 | 774 | | |
785 | | - | |
786 | | - | |
787 | 775 | | |
| 776 | + | |
| 777 | + | |
788 | 778 | | |
789 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
790 | 784 | | |
791 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
792 | 789 | | |
793 | | - | |
| 790 | + | |
794 | 791 | | |
795 | 792 | | |
796 | 793 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments