From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Thu, 07 Feb 2013 19:26:45 -0500 Subject: hd controller In-Reply-To: Your message of "Fri, 08 Feb 2013 07:48:39 +0800." References: <20130207081926.GA2408@debian.localdomain> Message-ID: <37552.1360283205@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, 08 Feb 2013 07:48:39 +0800, Peter Teoh said: > So the drivers just literally concatenate these command into a string and > send it over to the device. The reason that good disk drivers are hard to write is because it isn't *just* literally concatenating the commands - it also has to do memory management (make sure that everybody's data ends up in the right buffers), command queue management, elevator management (if there's multiple I/O requests pending from userspace, what order do we issue them in?), error recovery, power management, and a ton of other stuff... -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 865 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130207/4cba76c7/attachment.bin