]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ore: Support for short read/writes
authorBoaz Harrosh <bharrosh@panasas.com>
Sat, 27 Aug 2011 04:04:52 +0000 (21:04 -0700)
committerBoaz Harrosh <bharrosh@panasas.com>
Tue, 4 Oct 2011 10:17:12 +0000 (12:17 +0200)
commitb2e3e8de5ca6588a09d3204cf6e455ab0d4c84ef
treead56e304131d1cbb8e032a9ad1fc37327f8a2f10
parentc8dfed01ecd879c6bef53b23b43826b3400db8e1
ore: Support for short read/writes

Memory conditions and max_bio constraints might cause us to
not comply to the full length of the requested IO. Instead of
failing the complete IO we can issue a shorter read/write and
report how much was actually executed in the ios->length
member.

All users must check ios->length at IO_done or upon return of
ore_read/write and re-issue the reminder of the bytes. Because
other wise there is no error returned like before.

This is part of the effort to support the pnfs-obj layout driver.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/ore.c