Re: [PATCH 2/2] mmc_block: ensure all sectors that do not have errors are read



In article <494F7A02.2030302@xxxxxxxxx> you wrote:
+ /*
+ * After a read error, we redo the request one sector at a time
+ * in order to accurately determine which sectors can be read
+ * successfully.
+ */
+ if (disable_multi && brq.data.blocks > 1)
+ brq.data.blocks = 1;
+
if (brq.data.blocks > 1) {
/* SPI multiblock writes terminate using a special
* token, not a STOP_TRANSMISSION request.

We would save an comparision here if we use it like this:

...
if (brq.data.blocks > 1) {

/*
* After a read error, we redo the request one sector at a time
* in order to accurately determine which sectors can be read
* successfully.
*/
if (disable_multi)
brq.data.blocks = 1;

/* SPI multiblock writes terminate using a special
...


+ if (brq.cmd.error || brq.data.error || brq.stop.error) {
+ if (brq.data.blocks > 1 && rq_data_dir(req) == READ) {
+ /* Redo read one sector at a time */
+ printk(KERN_WARNING "%s: retrying using single "
+ "block read\n", req->rq_disk->disk_name);
+ disable_multi = 1;
+ continue;
+ }

Will this flood the logs?

Gruss
Bernd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Runtime Error
    ... The application has requested the runtime to terminate it in an unusual way. ... disabling/unchecking Javathe runtime error ceased in IE6. ... > this program has request the runtime library to terminate it in an unusual ... > then when I clicked the ok button, all internet explorer windows were ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Runtime error
    ... The application has requested the runtime to terminate it in an unusual way. ... Henri Leboeuf ... "Nat" wrote in message ... > request termination in a most unsual manor" Don't know ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: how to turn off OPCOM messages on a console terminal
    ... a call via $sndopr) will continue to be broadcast ... If there is no operator terminal, the REQUEST/REPLY (or the $sndopr call ... analog) will terminate. ... If you just want to log a message, then REQUEST (or an equivalent ...
    (comp.os.vms)
  • Re: Did I give up on telnet too easily?
    ... terminate me if I had posted a "crack me request" from company ... equipment. ...
    (comp.os.linux.networking)