Whamcloud - gitweb
Branch b1_6
authorjohann <johann>
Mon, 28 May 2007 12:07:35 +0000 (12:07 +0000)
committerjohann <johann>
Mon, 28 May 2007 12:07:35 +0000 (12:07 +0000)
Clear iobuf->dr_error between two uses.

b=11722
i=green
i=adilger

lustre/ChangeLog
lustre/obdfilter/filter_io_26.c

index 1283216..4d242ea 100644 (file)
@@ -15,6 +15,13 @@ tbd         Cluster File Systems, Inc. <info@clusterfs.com>
        * bug fixes
 
 Severity   : normal
+Frequency  : rare
+Bugzilla   : 11722
+Description: Transient SCSI error results in persistent IO issue
+Details    : iobuf->dr_error is not reinitialized to 0 between two
+            uses.
+
+Severity   : normal
 Frequency  : SLES10 only
 Bugzilla   : 12538
 Description: sanity-quota.sh quotacheck failed: rc = -22
index b8b9a7c..eeae4bd 100644 (file)
@@ -182,6 +182,7 @@ struct filter_iobuf *filter_alloc_iobuf(struct filter_obd *filter,
         spin_lock_init(&iobuf->dr_lock);
         iobuf->dr_max_pages = num_pages;
         iobuf->dr_npages = 0;
+        iobuf->dr_error = 0;
 
         RETURN(iobuf);
 
@@ -197,6 +198,7 @@ struct filter_iobuf *filter_alloc_iobuf(struct filter_obd *filter,
 static void filter_clear_iobuf(struct filter_iobuf *iobuf)
 {
         iobuf->dr_npages = 0;
+        iobuf->dr_error = 0;
         atomic_set(&iobuf->dr_numreqs, 0);
 }