History log of /freebsd-10.1-release/sys/geom/nop/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


260385 07-Jan-2014 scottl

MFC Alexander Motin's GEOM direct dispatch work:

r256603:
Introduce new function devstat_end_transaction_bio_bt(), adding new argument
to specify present time. Use this function to move binuptime() out of lock,
substantially reducing lock congestion when slow timecounter is used.

r256606:
Move g_io_deliver() out of the lock, as required for direct dispatch.
Move g_destroy_bio() out too to reduce lock scope even more.

r256607:
Fix passing uninitialized bio_resid argument to g_trace().

r256610:
Add unmapped I/O support to GEOM RAID.

r256830:
Restore BIO_UNMAPPED and BIO_TRANSIENT_MAPPING in biodonne() when unmapping
temporary mapped buffer. That fixes double unmap if biodone() called twice
for the same BIO (but with different done methods).

r256880:
Merge GEOM direct dispatch changes from the projects/camlock branch.

When safety requirements are met, it allows to avoid passing I/O requests
to GEOM g_up/g_down thread, executing them directly in the caller context.
That allows to avoid CPU bottlenecks in g_up/g_down threads, plus avoid
several context switches per I/O.

r259247:
Fix bug introduced at r256607. We have to recalculate bp_resid here since
sizes of original and completed requests may differ due to end of media.

Testing of the stable/10 merge was done by Netflix, but all of the credit
goes to Alexander and iX Systems.

Submitted by: mav
Sponsored by: iX Systems


258505 24-Nov-2013 mjg

MFC r256951:
gnop: make sure that newly allocated memory for softc is zeroed

This prevents mtx_init from encountering non-zeros and panicking
the kernel as a result.

Approved by: re


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


249440 13-Apr-2013 jmg

move the error report to a lower log level... Now you can see when it
returns an error without getting every single io that went through it..

MFC after: 1 week


248721 26-Mar-2013 mav

GEOM NOP does not touch the data, so pass G_PF_ACCEPT_UNMAPPED flag through.


248720 26-Mar-2013 mav

Remove extra bio_data and bio_length copying to child request after calling
g_clone_bio(), that already copied them.


243333 20-Nov-2012 jh

- Don't pass geom and provider names as format strings.
- Add __printflike() attributes.
- Remove an extra argument for the g_new_geomf() call in swapongeom_ev().

Reviewed by: pjd


238219 07-Jul-2012 trasz

Add trivial resize handling to gnop(8).

Reviewed by: mav
Sponsored by: FreeBSD Foundation


227309 07-Nov-2011 ed

Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.

The SYSCTL_NODE macro defines a list that stores all child-elements of
that node. If there's no SYSCTL_DECL macro anywhere else, there's no
reason why it shouldn't be static.


223921 11-Jul-2011 ae

Include sys/sbuf.h directly.

Reviewed by: pjd


220184 31-Mar-2011 ae

Remove unneeded checks, g_new_xxx functions can not return NULL.

Reviewed by: pjd
MFC after: 1 week


217303 12-Jan-2011 ae

Sector size can not be greater than MAXPHYS.

MFC after: 1 week


217263 11-Jan-2011 ae

Remove redundant check.

MFC after: 1 week


217262 11-Jan-2011 ae

Round GNOP provider's mediasize to its sectorsize. This prevents KASSERT
in g_io_request when geom classes doing tasting.

PR: kern/147852
MFC after: 1 week


162834 30-Sep-2006 pjd

Remove trailing spaces.


162153 08-Sep-2006 pjd

Fix format character.

Reported by: andre


162142 08-Sep-2006 pjd

- Split failure probability configuration into read failure probability and
write failure probability.
- Allow to specify an error number to return of failure.

MFC after: 3 days


155174 01-Feb-2006 pjd

Remove trailing spaces.


154459 17-Jan-2006 pjd

Log situation when EIO is returned.


154458 17-Jan-2006 pjd

Remove bio leak when EIO error is emulated.

Found by: Coverity Prevent(tm)
MFC after: 3 days


153532 19-Dec-2005 pjd

MFp4: Typo fix (without it the XML GEOM tree wasn't consistent).

Reported by: Eric Anderson <anderson@centtech.com>


153265 09-Dec-2005 pjd

Fix build breakage by fixing typo.

Reported by: glebius


153250 08-Dec-2005 pjd

Teach NOP GEOM class how to gather the following statistics:
- number of read I/O requests,
- number of write I/O requests,
- number of read bytes,
- number of written bytes.
Add 'reset' subcommand for resetting statistics.


135302 16-Sep-2004 fjoe

g_nop_create: destroy newly created provider in case of errors.


133981 18-Aug-2004 pjd

NOP class doesn't operate on metadata, so the spoil event can be safely
ignored.


133318 08-Aug-2004 phk

Tag all geom classes in the tree with a version number.


132988 02-Aug-2004 pjd

- Fix unloading by the same way it is done in my other classes:
set gp->softc to NULL and return ENXIO when it is NULL, so GEOM
will not panic or hang, but unload one device on every 'unload'.
This make 'unload' command usable, but it have to be executed
<number of devices> + 1 times.
- Made use of 'pp' variable.


132877 30-Jul-2004 pjd

- Add '-S' option, which allow to specify sector size for transparent
provider.
- Bump version number.

This allows for a quite interesting trick. One can setup a stripe with
stripe size of 512 bytes and create transparent provider on top of it
with sector size equal to <ndisks> * 512. The result will be something
like RAID3 without parity disk (every access will touch all disks).


132665 26-Jul-2004 pjd

Improve geom(8)'s 'list' command to show geoms and their providers and
consumers. Teach STRIPE, CONCAT and NOP classes about this improvement.


132381 19-Jul-2004 pjd

MFp4: Add two options for gnop(8)'s 'create' command:
-o offset - specifies where to start on the original provider
-s size - specifies size of the transparent provider


130193 07-Jun-2004 pjd

Fix format string.


130191 07-Jun-2004 pjd

Don't allow for duplicated entries creation.


129548 21-May-2004 pjd

- Change command name from 'config' to 'configure'.
- Bump version number.


129471 20-May-2004 pjd

Introduce NOP GEOM class. This is totally transparent GEOM class, but
it is very useful for tests. One is able to destroy its provider
forcibly if wants to test how other class handle such events.
One is also able to specify failure probability to check how other
classes handle I/O errors.

Supported by: Wheel - Open Technologies - http://www.wheel.pl