Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304120 Details for
Bug 443645
ST Driver causing kernel panic condition
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Final patch sent to review
bz443645.patch (text/plain), 3.27 KB, created by
Ivan Vecera
on 2008-04-29 14:16:49 UTC
(
hide
)
Description:
Final patch sent to review
Filename:
MIME Type:
Creator:
Ivan Vecera
Created:
2008-04-29 14:16:49 UTC
Size:
3.27 KB
patch
obsolete
>--- linux-2.6.18/drivers/scsi/st.h.orig 2008-04-24 18:29:23.000000000 +0200 >+++ linux-2.6.18/drivers/scsi/st.h 2008-04-24 18:39:51.000000000 +0200 >@@ -117,7 +117,8 @@ struct scsi_tape { > unsigned char cln_sense_value; > unsigned char cln_sense_mask; > unsigned char use_pf; /* Set Page Format bit in all mode selects? */ >- unsigned char try_dio; /* try direct i/o? */ >+ unsigned char try_dio; /* try direct i/o in general? */ >+ unsigned char try_dio_now; /* try direct i/o before next close? */ > unsigned char c_algo; /* compression algorithm */ > unsigned char pos_unknown; /* after reset position unknown */ > int tape_type; >--- linux-2.6.18/drivers/scsi/st.c.orig 2008-04-24 18:29:17.000000000 +0200 >+++ linux-2.6.18/drivers/scsi/st.c 2008-04-24 18:39:50.000000000 +0200 >@@ -9,7 +9,7 @@ > Steve Hirsch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsky, > Michael Schaefer, J"org Weule, and Eric Youngdale. > >- Copyright 1992 - 2005 Kai Makisara >+ Copyright 1992 - 2007 Kai Makisara > email Kai.Makisara@kolumbus.fi > > Some small formal changes - aeb, 950809 >@@ -17,7 +17,7 @@ > Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support > */ > >-static const char *verstr = "20050830"; >+static const char *verstr = "20070203"; > > #include <linux/module.h> > >@@ -1168,6 +1168,7 @@ static int st_open(struct inode *inode, > STps = &(STp->ps[i]); > STps->rw = ST_IDLE; > } >+ STp->try_dio_now = STp->try_dio; > STp->recover_count = 0; > DEB( STp->nbr_waits = STp->nbr_finished = 0; > STp->nbr_requests = STp->nbr_dio = STp->nbr_pages = STp->nbr_combinable = 0; ) >@@ -1397,9 +1398,9 @@ static int setup_buffering(struct scsi_t > struct st_buffer *STbp = STp->buffer; > > if (is_read) >- i = STp->try_dio && try_rdio; >+ i = STp->try_dio_now && try_rdio; > else >- i = STp->try_dio && try_wdio; >+ i = STp->try_dio_now && try_wdio; > > if (i && ((unsigned long)buf & queue_dma_alignment( > STp->device->request_queue)) == 0) { >@@ -1596,7 +1597,7 @@ st_write(struct file *filp, const char _ > STm->do_async_writes && STps->eof < ST_EOM_OK; > > if (STp->block_size != 0 && STm->do_buffer_writes && >- !(STp->try_dio && try_wdio) && STps->eof < ST_EOM_OK && >+ !(STp->try_dio_now && try_wdio) && STps->eof < ST_EOM_OK && > STbp->buffer_bytes < STbp->buffer_size) { > STp->dirty = 1; > /* Don't write a buffer that is not full enough. */ >@@ -1766,7 +1767,7 @@ static long read_tape(struct scsi_tape * > if (STp->block_size == 0) > blks = bytes = count; > else { >- if (!(STp->try_dio && try_rdio) && STm->do_read_ahead) { >+ if (!(STp->try_dio_now && try_rdio) && STm->do_read_ahead) { > blks = (STp->buffer)->buffer_blocks; > bytes = blks * STp->block_size; > } else { >@@ -1945,10 +1946,12 @@ st_read(struct file *filp, char __user * > goto out; > > STm = &(STp->modes[STp->current_mode]); >- if (!(STm->do_read_ahead) && STp->block_size != 0 && >- (count % STp->block_size) != 0) { >- retval = (-EINVAL); /* Read must be integral number of blocks */ >- goto out; >+ if (STp->block_size != 0 && (count % STp->block_size) != 0) { >+ if (!STm->do_read_ahead) { >+ retval = (-EINVAL); /* Read must be integral number of blocks */ >+ goto out; >+ } >+ STp->try_dio_now = 0; /* Direct i/o can't handle split blocks */ > } > > STps = &(STp->ps[STp->partition]);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 443645
: 304120